flutter/dev/tools/gen_keycodes/data/printable.json
Greg Spencer 431cfdafd9
Adding support for logical and physical key events (#27627)
This adds support for logical and physical key information inside of RawKeyEvent. This allows developers to differentiate keys in a platform-agnostic way. They are able to tell the physical location of a key (PhysicalKeyboardKey) and a logical meaning of the key (LogicalKeyboardKey), as well as get notified of the character generated by the keypress. All of which is useful for handling keyboard shortcuts.

This PR builds on the previous PR (#27620) which generated the key code mappings and definitions.
2019-02-08 12:42:34 -08:00

70 lines
1.1 KiB
JSON

{
"backquote": "`",
"backslash": "\\",
"bracketLeft": "[",
"bracketRight": "]",
"comma": ",",
"digit0": "0",
"digit1": "1",
"digit2": "2",
"digit3": "3",
"digit4": "4",
"digit5": "5",
"digit6": "6",
"digit7": "7",
"digit8": "8",
"digit9": "9",
"equal": "=",
"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",
"minus": "-",
"numpad0": "0",
"numpad1": "1",
"numpad2": "2",
"numpad3": "3",
"numpad4": "4",
"numpad5": "5",
"numpad6": "6",
"numpad7": "7",
"numpad8": "8",
"numpad9": "9",
"numpadAdd": "+",
"numpadComma": ",",
"numpadDecimal": ".",
"numpadDivide": "/",
"numpadEqual": "=",
"numpadMultiply": "*",
"numpadParenLeft": "(",
"numpadParenRight": ")",
"numpadSubtract": "-",
"period": ".",
"quote": "'",
"semicolon": ";",
"slash": "/",
"space": " "
}