Package org.openstreetmap.josm.tools
Class KeyboardUtils
java.lang.Object
org.openstreetmap.josm.tools.KeyboardUtils
Keyboard utils.
- Since:
- 14012
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe flag for extended key codes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void(package private) static void(package private) static void(package private) static void(package private) static void(package private) static void(package private) static void(package private) static void(package private) static void(package private) static voidaddThaiCharacters(Map<Integer, Character> map) getCharactersForKey(char row, int column) Returns the plausible characters expected to be displayed for the given physical key and current input locale.getCharactersForKey(char row, int column, Locale l) Returns the plausible characters expected to be displayed for the given physical key and locale.getExtendedKeyCodes(Locale locale) Returns the extended key codes that we are susceptible to receive given the locale.Returns Keycodes declared inKeyEventwith corresponding Unicode values.
-
Field Details
-
EXTENDED_KEYCODE_FLAG
The flag for extended key codes.- See Also:
-
regularKeyCodesMap
-
-
Constructor Details
-
KeyboardUtils
private KeyboardUtils()
-
-
Method Details
-
getRegularKeyCodesMap
Returns Keycodes declared inKeyEventwith corresponding Unicode values.- Returns:
- Map of KeyEvent VK_ characters constants indexed by their unicode value
-
getCharactersForKey
Returns the plausible characters expected to be displayed for the given physical key and current input locale. Physical keys are defined as per ISO/IEC 9995-2 keyboard layout. Only E00 is currently supported.- Parameters:
row- row letter as per ISO/IEC 9995-2 (A to E)column- column number as per ISO/IEC 9995-2 (0 to 14, plus 99)- Returns:
- the plausible characters expected to be displayed for the given physical key and current input locale
-
getCharactersForKey
Returns the plausible characters expected to be displayed for the given physical key and locale. Physical keys are defined as per ISO/IEC 9995-2 keyboard layout. Only E00 is currently supported.- Parameters:
row- row letter as per ISO/IEC 9995-2 (A to E)column- column number as per ISO/IEC 9995-2 (0 to 14, plus 99)l- locale (defining language and country)- Returns:
- the plausible characters expected to be displayed for the given physical key and locale
-
getExtendedKeyCodes
Returns the extended key codes that we are susceptible to receive given the locale.- Parameters:
locale- locale- Returns:
- the extended key codes that we are susceptible to receive given the locale
-
addLatinCharacters
-
addGreekCharacters
-
addCyrillicCharacters
-
addArmenianCharacters
-
addHebrewCharacters
-
addArabicCharacters
-
addThaiCharacters
-
addGeorgianCharacters
-
addSymbolCharacters
-
addJapaneseCharacters
-