Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:html
  3. KeyCode class
KeyCode
description

KeyCode classabstract

Defines the keycode values for keys that are returned byKeyboardEvent.keyCode.

Important note: There is substantial divergence in how different browsershandle keycodes and their variants in different locales/keyboard layouts. Weprovide these constants to help make code processing keys more readable.

Constructors

KeyCode()

Properties

hashCodeint
The hash code for this object.
no setterinherited
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString()String
A string representation of this object.
inherited

Operators

operator ==(Objectother)bool
The equality operator.
inherited

Static Methods

isCharacterKey(intkeyCode)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

A→ constint
ALT→ constint
APOSTROPHE→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
B→ constint
BACKSLASH→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
BACKSPACE→ constint
C→ constint
CAPS_LOCK→ constint
CLOSE_SQUARE_BRACKET→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
COMMA→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
CONTEXT_MENU→ constint
CTRL→ constint
D→ constint
DASH→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
DELETE→ constint
DOWN→ constint
E→ constint
EIGHT→ constint
END→ constint
ENTER→ constint
EQUALS→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
ESC→ constint
F→ constint
F1→ constint
F2→ constint
F3→ constint
F4→ constint
F5→ constint
F6→ constint
F7→ constint
F8→ constint
F9→ constint
F10→ constint
F11→ constint
F12→ constint
FF_EQUALS→ constint
FF_SEMICOLON→ constint
FIRST_MEDIA_KEY→ constint
FIVE→ constint
FOUR→ constint
G→ constint
H→ constint
HOME→ constint
I→ constint
INSERT→ constint
J→ constint
K→ constint
L→ constint
LAST_MEDIA_KEY→ constint
LEFT→ constint
M→ constint
MAC_ENTER→ constint
MAC_FF_META→ constint
META→ constint
N→ constint
NINE→ constint
NUM_CENTER→ constint
NUM_CENTER is also NUMLOCK for FF and Safari on Mac.
NUM_DELETE→ constint
NUM_DIVISION→ constint
NUM_EAST→ constint
NUM_EIGHT→ constint
NUM_FIVE→ constint
NUM_FOUR→ constint
NUM_INSERT→ constint
NUM_MINUS→ constint
NUM_MULTIPLY→ constint
NUM_NINE→ constint
NUM_NORTH→ constint
NUM_NORTH_EAST→ constint
NUM_NORTH_WEST→ constint
NUM_ONE→ constint
NUM_PERIOD→ constint
NUM_PLUS→ constint
NUM_SEVEN→ constint
NUM_SIX→ constint
NUM_SOUTH→ constint
NUM_SOUTH_EAST→ constint
NUM_SOUTH_WEST→ constint
NUM_THREE→ constint
NUM_TWO→ constint
NUM_WEST→ constint
NUM_ZERO→ constint
NUMLOCK→ constint
O→ constint
ONE→ constint
OPEN_SQUARE_BRACKET→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
P→ constint
PAGE_DOWN→ constint
PAGE_UP→ constint
PAUSE→ constint
PERIOD→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
PRINT_SCREEN→ constint
Q→ constint
QUESTION_MARK→ constint
CAUTION: The question mark is for US-keyboard layouts. It variesfor other locales and keyboard layouts.
R→ constint
RIGHT→ constint
S→ constint
SCROLL_LOCK→ constint
SEMICOLON→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
SEVEN→ constint
SHIFT→ constint
SINGLE_QUOTE→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
SIX→ constint
SLASH→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
SPACE→ constint
T→ constint
TAB→ constint
THREE→ constint
TILDE→ constint
CAUTION: This constant requires localization for other locales and keyboardlayouts.
TWO→ constint
U→ constint
UNKNOWN→ constint
A sentinel value if the keycode could not be determined.
UP→ constint
V→ constint
W→ constint
WIN_IME→ constint
WIN_KEY→ constint
WIN_KEY_FF_LINUX→ constint
WIN_KEY_LEFT→ constint
WIN_KEY_RIGHT→ constint
X→ constint
Y→ constint
Z→ constint
ZERO→ constint
  1. Dart
  2. dart:html
  3. KeyCode class
dart:html library

[8]ページ先頭

©2009-2025 Movatter.jp