Mapping from Unicode‘s positional layout (1) to Fuchsia Key (2). It’s not currently used in code or tests and serves as a human-readable reference for manual conversion Unicode CLDRs to Fuchsia keyboard layouts.
Contains U.S. keyboard layout test cases.
Symbolic keys tests are modeled after Unicode CLDR from https://www.unicode.org/cldr/charts/36/keyboards/layouts/en.html#en-t-k0-osx
Following modifier states are supported:
NoneShiftCapsLock + ShiftCapsLockNon-symbolic key tests are based on xkeyboard-config (https://github.com/freedesktop/xkeyboard-config) symbol map, more specifically “symbols/pc(pc105)”.
The test set consists of key presses that should match semantic meanings. Symbolic key codes (e.g. <ESC>, <RTRN>) which could be mapped directly to Key values are used. Keysyms that could be mapped directly into Semantic Keys are used as well. Symbolic key codes, modifiers, and keysyms which were not included are listed below as well as reasons for that.
Modifiers supported:
NoneNumLockKeys omitted:
BKSL aka Key.BACKSLASHLSGT aka Key.NON_US_BACKSLASHSPCE aka Key.SPACESemanticKeyAction yet:PRSCPAUSKPPTMDSWSUPRHYPROUTPKITGKIDNKIUP<Alt> not supported (only Key.LEFT_ALT and Key.RIGHT_ALT)<Meta> not supported (only Key.LEFT_META and Key.RIGHT_META)Modifiers omitted:
Mod3Mod5Modifier interpretations:
Lock (virtual modifier) is Modifiers.CAPS_LOCKShift (virtual modifier) is Modifiers.SHIFTControl (virtual modifier) is Modifiers.CONTROLMod1 (virtual modifier) is Modifiers.ALTMod2 (virtual modifier) is Modifiers.NUM_LOCKMod4 (virtual modifier) is Modifiers.METAKey interpretations:
LVL3 is Key.RIGHT_ALTShift_L and LFSH are Key.LEFT_SHIFTShift_R and RTSH are Key.RIGHT_SHIFTControl_L and LCTL are Key.LEFT_CTRLControl_R and RCTL are Key.RIGHT_CTRLSuper_L and LWIN are Key.LEFT_METASuper_R and RWIN are Key.RIGHT_METAAlt_L and LALT are Key.LEFT_ALTAlt_R and RALT are Key.RIGHT_ALT