% cd /Applications/Firefox.app/Contents/MacOS/chrome/
% cp toolkit.jar $WORKING_DIRECTORY
% cd $WORKING_DIRECTORY
% jar -xf toolkit.jar
% vi content/global/platformHTMLBindings.xml
<binding id="inputFields"> の <handlers> に<!-- Emacsish single-line motion and delete keys -->を <binding id="textAreas"> と <binding id="editor"> の <handlers> に
<handler event="keypress" key="a" modifiers="control" command="cmd_beginLine"/>
<handler event="keypress" key="e" modifiers="control" command="cmd_endLine"/>
<handler event="keypress" key="b" modifiers="control" command="cmd_charPrevious"/>
<handler event="keypress" key="f" modifiers="control" command="cmd_charNext"/>
<handler event="keypress" key="h" modifiers="control" command="cmd_deleteCharBackward"/>
<handler event="keypress" key="d" modifiers="control" command="cmd_deleteCharForward"/>
<handler event="keypress" key="w" modifiers="control" command="cmd_deleteWordBackward"/>
<handler event="keypress" key="u" modifiers="control" command="cmd_deleteToBeginningOfLine"/>
<handler event="keypress" key="k" modifiers="control" command="cmd_deleteToEndOfLine"/>
<!-- Emacsish single-line motion and delete keys -->を追加します。platformHTMLBindings.xml の編集が終われば、toolkit.jar を再度圧縮して元に戻します。
<handler event="keypress" key="a" modifiers="control" command="cmd_beginLine"/>
<handler event="keypress" key="e" modifiers="control" command="cmd_endLine"/>
<handler event="keypress" id="key_left" key="b" modifiers="control" command="cmd_charPrevious"/>
<handler event="keypress" id="key_right" key="f" modifiers="control" command="cmd_charNext"/>
<handler event="keypress" id="key_delback" key="h" modifiers="control" command="cmd_deleteCharBackward"/>
<handler event="keypress" id="key_delforw" key="d" modifiers="control" command="cmd_deleteCharForward"/>
<handler event="keypress" id="key_delwback" key="w" modifiers="control" command="cmd_deleteWordBackward"/>
<handler event="keypress" id="key_del_bol" key="u" modifiers="control" command="cmd_deleteToBeginningOfLine"/>
<handler event="keypress" id="key_del_eol" key="k" modifiers="control" command="cmd_deleteToEndOfLine"/>
<!-- Emacsish multi-line motion and delete keys -->
<handler event="keypress" id="key_linedown" key="n" modifiers="control" command="cmd_lineNext"/>
<handler event="keypress" id="key_lineup" key="p" modifiers="control" command="cmd_linePrevious"/>
% jar -cf toolkit.jar content/
% cp toolkit.jar /Applications/Firefox.app/Contents/MacOS/chrome/
トラックバックありがとうございます。
そして、このような情報を掲載していただいてありがとうございます。
現在は、テキスト入力も慣れた Emacs 風の操作で行う事ができるようになりました。
toolkit.jar ファイルですが、公開したので、もしよろしければお使い下さい。
それでは。
カッキー