phamow / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

Support for keyboards other than US in KeyStrokeMappings #252

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From Peter Murray:

The default KeyStrokeMappings in FEST only support US English
keyboards. The UK variant, and most likely others (which also share
english at the language) will have different character mappings for
some keys.

To get around this we have injected our own mappings for keys using a
KeyStrokeMappingProvider_GB_en that extends your default
KeyStrokeMappingProvider_en class whith the following modifications;

mappings.add(new KeyStrokeMapping('"', VK_2, SHIFT_MASK));
mappings.add(new KeyStrokeMapping('£', VK_3, SHIFT_MASK));
mappings.add(new KeyStrokeMapping('\'', VK_QUOTE, NO_MASK));
mappings.add(new KeyStrokeMapping('@', VK_QUOTE, SHIFT_MASK));

This only gets us some of the way though as there are still characters
that we cannot type, namely # or ~ as these share a key on our
keyboards, and the Key Code when typed in a JTextField returns
VK_UNDEFINIED.

Is there anyway to get around this with the way FEST works, other than
just setting the text on field?

Original issue reported on code.google.com by Alex.Rui...@gmail.com on 8 Dec 2008 at 2:40

GoogleCodeExporter commented 9 years ago
We'll address this issue in version 1.1.

Original comment by Alex.Rui...@gmail.com on 16 Dec 2008 at 6:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Issue migrated to http://kenai.com/jira/browse/FEST-25

Original comment by Alex.Rui...@gmail.com on 15 Feb 2009 at 5:06

GoogleCodeExporter commented 9 years ago
Issue migrated to http://jira.codehaus.org/browse/FEST-26

Original comment by Alex.Rui...@gmail.com on 2 Mar 2009 at 11:28