Export to GitHub

js-hotkeys - issue #8

Foreign keyboard mappings not picked up


Posted on Oct 5, 2007 by Massive Panda

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

Comment #1

Posted on Dec 16, 2007 by Grumpy Kangaroo

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.

Status: WontFix

Labels:
Type-Defect Priority-Medium