public final class KeyCodeMap extends Object
KeyCode
s 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 . |
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 . |
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
.Copyright © 2020. All rights reserved.