KeyCode class - dart:html library (original) (raw)
Defines the keycode values for keys that are returned by KeyboardEvent.keyCode.
Important note: There is substantial divergence in how different browsers handle keycodes and their variants in different locales/keyboard layouts. We provide these constants to help make code processing keys more readable.
Constructors
KeyCode()
Properties
The hash code for this object.
no setterinherited
A representation of the runtime type of the object.
no setterinherited
Methods
noSuchMethod(Invocation invocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
A string representation of this object.
inherited
Operators
operator ==(Object other)→ bool
The equality operator.
inherited
Static Methods
isCharacterKey(int keyCode)→ bool
Returns true if the keyCode produces a (US keyboard) character. Note: This does not (yet) cover characters on non-US keyboards (Russian, Hebrew, etc.).
Constants
APOSTROPHE → const int
CAUTION: This constant requires localization for other locales and keyboard layouts.
CAUTION: This constant requires localization for other locales and keyboard layouts.
CLOSE_SQUARE_BRACKET → const int
CAUTION: This constant requires localization for other locales and keyboard layouts.
CAUTION: This constant requires localization for other locales and keyboard layouts.
CONTEXT_MENU → const int
CAUTION: This constant requires localization for other locales and keyboard layouts.
CAUTION: This constant requires localization for other locales and keyboard layouts.
FF_SEMICOLON → const int
FIRST_MEDIA_KEY → const int
LAST_MEDIA_KEY → const int
MAC_FF_META → const int
NUM_CENTER → const int
NUM_CENTER is also NUMLOCK for FF and Safari on Mac.
NUM_DELETE → const int
NUM_DIVISION → const int
NUM_INSERT → const int
NUM_MULTIPLY → const int
NUM_NORTH_EAST → const int
NUM_NORTH_WEST → const int
NUM_PERIOD → const int
NUM_SOUTH_EAST → const int
NUM_SOUTH_WEST → const int
OPEN_SQUARE_BRACKET → const int
CAUTION: This constant requires localization for other locales and keyboard layouts.
CAUTION: This constant requires localization for other locales and keyboard layouts.
PRINT_SCREEN → const int
QUESTION_MARK → const int
CAUTION: The question mark is for US-keyboard layouts. It varies for other locales and keyboard layouts.
SCROLL_LOCK → const int
CAUTION: This constant requires localization for other locales and keyboard layouts.
SINGLE_QUOTE → const int
CAUTION: This constant requires localization for other locales and keyboard layouts.
CAUTION: This constant requires localization for other locales and keyboard layouts.
CAUTION: This constant requires localization for other locales and keyboard layouts.
A sentinel value if the keycode could not be determined.
WIN_KEY_FF_LINUX → const int
WIN_KEY_LEFT → const int
WIN_KEY_RIGHT → const int