开发者

Why this handler is not restricted to CTRL+L?

开发者 https://www.devze.com 2023-02-09 07:18 出处:网络
I have a XBL handler with the following signature: <handler event=\"keypress\" modifiers=\"control\" keycode=\"DOM_VK_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.

0

精彩评论

暂无评论...
验证码 换一张
取 消