Hi,

I've been trying keypress binding customizations on Linux w/ 0.9.6 and 
0.9.7 RPMS, following examples in 
http://www.mozilla.org/unix/customizing.html.

With as few as 3 key bindings I get repeatable errors.  On .96 it was a
crash, on .97 it just seems to bind a key to the wrong action.

I want to dig into this more, and thought I'd look at the javascript
(?)  code that dispatches key events to commands.  I found some of the
event-handling C++ code but didn't find where key presses get handled
for the content window.

Can someone point me to that code, or to the documentation that would
tell me?


Thanks,

Mike

PS:

See my userHTMLBindings.xml, below.  I also have in my user.js:
user_pref("ui.key.menuAccessKey", 0);

================================================================

<?xml version="1.0"?>

<!-- Create a file called userHTMLBindings.xml and link it into -->
<!-- res/builtin. There's no need to add anything to userChrome.css. -->
<!-- In order to work correctly, this file must live in the -->
<!-- res/builtin directory of the mozilla tree. -->

<bindings id="htmlBindings"
     xmlns="http://www.mozilla.org/xbl";
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";>

<binding id="editorUser">
<handlers>
<!--
        <handler event="keypress" key="w" modifiers="control"
               command="cmd_deleteWordBackward"/>
-->
</handlers>
</binding>

<binding id="browserUser">
<handlers>

<handler event="keypress" keycode="z" modifiers="alt"
                 command="cmd_scrollLineUp" />

<handler event="keypress" keycode="z" modifiers="control"
                 command="cmd_scrollLineDown" />

<!-- This binding, when enabled here, causes ^V to invoke
             cmd_scrollLineUp, not cmd_scrollPageDown:

        <handler event="keypress" keycode="v" modifiers="control"
                 command="cmd_scrollPageDown" />
-->

</handler>
</binding>


</bindings>


Reply via email to