Why this handler is not restricted to CTRL+L?
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 p开发者_高级运维ress CTRL+L
. But, for some reason, it fires when the user press CTRL+.
Why? And how to make it work exclusively for CTRL+L
?
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.
精彩评论