When I switch my keyboard layout to hebrew and press a character, it is received in the kepress event as is. For example, clicking ה
(the v key), then e.which
is 1492. However, when I do a combination the key is the english key. So for alt+ה
e.which
is 86. So the event looks like alt+v
This is a pain if I want to create a function that accepts key combinations and callbacks and registers the callbacks but also shows a documentation of the callbacks, since if I register alt+ה
, then when I press the combination it will look like alt+v
and it wouldn't match the registered combinations. But if I register alt+v
, then the documentation will be awkward.
So my question boils down to whether one of the following is possible:
ה
was pressed together with alt
and not v
) alt+ה
it will convert it to alt+v
for the callback lookup. Of course I want something generic, that will work for any language, not list just the hebrew alphabet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.