maheshchari / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

Foreign keyboard mappings not picked up #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A colleague asked why he couldn't get ? to get picked up by the code. I had
a look and it appears you're hard coding to US keyboard codes. We're in the
UK so letters are fine but symbols are very jumbled.

Here's some examples:

/ - 191
' - 192
# - 222

Original issue reported on code.google.com by david.carrington on 5 Oct 2007 at 10:19

GoogleCodeExporter commented 8 years ago
you should override 'special_keys' and 'shift_nums' with your own keyboard 
mapping

e.g.:

$.hotkeys.special_keys = {/*UK KB */};
$.hotkeys.shift_nums = {/*UK KB */};

adding a methods for this dose not seems right to me for I wish to keep it as 
simple
as possible.

Original comment by Afro.Sys...@gmail.com on 16 Dec 2007 at 10:49