Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Firefox constantly keep moving platformHTMLBindings.xml when it upgrade.
I want to replace it to support vi key-bindings. But I cannot find it any more.

sudo find / -name platformHTMLBindings.xml -o -name toolkit.jar -o -name omni.jar

Thanks for your help.


I finally found it. It's called omni.ja now.

This is my editing to platformHTMLBindings.xml:

  <binding id="browser">
      <handler event="keypress" key=" " modifiers="shift" command="cmd_scrollPageUp" />
      <handler event="keypress" key=" " command="cmd_scrollPageDown" />

      <handler event="keypress" key="k" command="cmd_scrollLineUp" />
      <handler event="keypress" key="j" command="cmd_scrollLineDown" />
      <handler event="keypress" key="h" command="cmd_scrollLeft" />
      <handler event="keypress" key="l" command="cmd_scrollRight" />

After Editing, I restart firefox, and clear the cache.
chrome://global/content/platformHTMLBindings.xml is correct.
But the j/k/h/l shortcuts didn't work.

share|improve this question
Submit it as an answer instead of comment if your question is solved so that people knew that it is answered. – mac Apr 30 '12 at 6:32
@mac Haven't solved yet. Because after changing platformHTMLBindings.xml, nothing happened. – kev Apr 30 '12 at 6:39
Now if you change omni.ja, Firefox recognizes this and says that it needs to restart – nitishch Feb 4 '15 at 14:06
@kev where did you find commands like cmd_scrollLineUp from? – nitishch Feb 4 '15 at 14:07
@hatter I use vimperator now. It works very well! – kev Feb 4 '15 at 16:24
up vote 1 down vote accepted

I have to disable/enable an add-on to reload /usr/lib/firefox/omni.ja.

share|improve this answer

To do it in a GUI, you can use the extension "Menu Wizard", usage is described here. Another GUI, supporting more and different actions, is provided with the extension "Key config".

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.