Keypress icon indicating copy to clipboard operation
Keypress copied to clipboard

Support for different keyboard layouts

Open FattusMannus opened this issue 11 years ago • 5 comments

I see that the library works very well when using US or UK keyboard layouts - Great Job.

However there are a few issues when using a French keyboard (the only non English language I have tried). For example, on a french keyboard, to get numbers, you have to use shift where the symbols are non shifted. The library detects the opposite way (The same as in English based languages)

Also when pressing the symbol keys (the ones between alphabet and the enter key), the wrong symbol is detected. Is this a limitation or is it technically possible to handle these cases?

FattusMannus avatar Oct 23 '13 14:10 FattusMannus

I honestly don't know if it's a solvable problem, but I would love to find out and make it easy for people to add support for different language keyboards.

dmauro avatar Oct 23 '13 14:10 dmauro

I tried to implement my own keyboard system and your is miles better. If you let me know what I can do to help, Ill do my best

FattusMannus avatar Oct 23 '13 14:10 FattusMannus

The top comment here is probably relevant to this conversation: https://news.ycombinator.com/item?id=6464138

dmauro avatar Oct 23 '13 15:10 dmauro

What about supporting numerical keycodes? For example, on a german keyboard, the 'fence' character (#) has code 163. So if we could alternatively specify the code instead of the character in listener combos, it might help supporting some kind of internationalization.

drubb avatar Jul 25 '16 14:07 drubb

It's not so much an issue of how to map the different possible keyboards, but afaik there is no way to tell how a user's keyboard is mapped. Of course you could potentially offer the user a setting, that we could for sure build support for, but that's far from ideal I suppose.

dmauro avatar Jul 25 '16 15:07 dmauro