public final class KeyCodeMap
extends java.lang.Object
KeyCodes to Windows virtual key
codes and WebKit key identifiers.
For why there is a need to map to Windows virtual key codes and WebKit
key identifiers, see Source/WebCore/platform/PlatformKeyboardEvent.h,
Source/WebKit/chromium/public/WebInputEvent.h
(WebKeyboardEvent::windowsKeyCode and WebKeyboardEvent::nativeKeyCode),
and Source/WebCore/platform/chromium/KeyboardCodes.h.| Modifier and Type | Class and Description |
|---|---|
static class |
KeyCodeMap.Entry
The information associated with a
KeyCode. |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<KeyCode,KeyCodeMap.Entry> |
MAP |
| Constructor and Description |
|---|
KeyCodeMap() |
| Modifier and Type | Method and Description |
|---|---|
static KeyCodeMap.Entry |
lookup(KeyCode keyCode)
Returns an
KeyCodeMap.Entry object containing the Windows
virtual key code and the key identifier associated with
a given KeyCode. |
private static void |
put(java.util.Map<KeyCode,KeyCodeMap.Entry> map,
KeyCode keyCode,
int windowsVirtualKeyCode) |
private static void |
put(java.util.Map<KeyCode,KeyCodeMap.Entry> map,
KeyCode keyCode,
int windowsVirtualKeyCode,
java.lang.String keyIdentifier) |
private static final java.util.Map<KeyCode,KeyCodeMap.Entry> MAP
private static void put(java.util.Map<KeyCode,KeyCodeMap.Entry> map, KeyCode keyCode, int windowsVirtualKeyCode, java.lang.String keyIdentifier)
private static void put(java.util.Map<KeyCode,KeyCodeMap.Entry> map, KeyCode keyCode, int windowsVirtualKeyCode)
public static KeyCodeMap.Entry lookup(KeyCode keyCode)
KeyCodeMap.Entry object containing the Windows
virtual key code and the key identifier associated with
a given KeyCode.