Reland: Keyboard events (#87174)
This commit is contained in:
@@ -327,6 +327,9 @@ class LogicalKeyboardKey extends KeyboardKey {
|
||||
|
||||
@@@LOGICAL_KEY_DEFINITIONS@@@
|
||||
|
||||
/// A list of all predefined constant [LogicalKeyboardKey]s.
|
||||
static Iterable<LogicalKeyboardKey> get knownLogicalKeys => _knownLogicalKeys.values;
|
||||
|
||||
// A list of all predefined constant LogicalKeyboardKeys so they can be
|
||||
// searched.
|
||||
static const Map<int, LogicalKeyboardKey> _knownLogicalKeys = <int, LogicalKeyboardKey>{
|
||||
@@ -489,6 +492,9 @@ class PhysicalKeyboardKey extends KeyboardKey {
|
||||
|
||||
@@@PHYSICAL_KEY_DEFINITIONS@@@
|
||||
|
||||
/// A list of all predefined constant [PhysicalKeyboardKey]s.
|
||||
static Iterable<PhysicalKeyboardKey> get knownPhysicalKeys => _knownPhysicalKeys.values;
|
||||
|
||||
// A list of all the predefined constant PhysicalKeyboardKeys so that they
|
||||
// can be searched.
|
||||
static const Map<int, PhysicalKeyboardKey> _knownPhysicalKeys = <int, PhysicalKeyboardKey>{
|
||||
|
||||
@@ -176,41 +176,5 @@
|
||||
"Zoom": ["ZOOM"],
|
||||
"Noname": ["NONAME"],
|
||||
"Pa1": ["PA1"],
|
||||
"OemClear": ["OEM_CLEAR"],
|
||||
"0": ["0"],
|
||||
"1": ["1"],
|
||||
"2": ["2"],
|
||||
"3": ["3"],
|
||||
"4": ["4"],
|
||||
"5": ["5"],
|
||||
"6": ["6"],
|
||||
"7": ["7"],
|
||||
"8": ["8"],
|
||||
"9": ["9"],
|
||||
"KeyA": ["A"],
|
||||
"KeyB": ["B"],
|
||||
"KeyC": ["C"],
|
||||
"KeyD": ["D"],
|
||||
"KeyE": ["E"],
|
||||
"KeyF": ["F"],
|
||||
"KeyG": ["G"],
|
||||
"KeyH": ["H"],
|
||||
"KeyI": ["I"],
|
||||
"KeyJ": ["J"],
|
||||
"KeyK": ["K"],
|
||||
"KeyL": ["L"],
|
||||
"KeyM": ["M"],
|
||||
"KeyN": ["N"],
|
||||
"KeyO": ["O"],
|
||||
"KeyP": ["P"],
|
||||
"KeyQ": ["Q"],
|
||||
"KeyR": ["R"],
|
||||
"KeyS": ["S"],
|
||||
"KeyT": ["T"],
|
||||
"KeyU": ["U"],
|
||||
"KeyV": ["V"],
|
||||
"KeyW": ["W"],
|
||||
"KeyX": ["X"],
|
||||
"KeyY": ["Y"],
|
||||
"KeyZ": ["Z"]
|
||||
"OemClear": ["OEM_CLEAR"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user