Why this handler is not restricted to CTRL+L?

150 views Asked by At

I have a XBL handler with the following signature:

<handler event="keypress" modifiers="control" keycode="DOM_VK_L">

As you see, it should be fired when the user press CTRL+L. But, for some reason, it fires when the user press CTRL+.

Why? And how to make it work exclusively for CTRL+L?

1

There are 1 answers

5
kirilloid On

There's no such attribute as keycode in current standard.
If you meant some implementation, which do not follow the standard, then you should mention it in question text.

And if you speak about Mozilla XBL1.0, then you need to use one from followings:

<handler event="keyup" modifiers="control" keycode="DOM_VK_L">
<handler event="keypress" modifiers="control" charcode="108">

108 is a ascii code for small L.