aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)AuthorFilesLines
2023-03-03Fix Hangeul/Hanja scancodesHEADmasterRoss Lagerwall1-4/+4
Invert the Xfree86 scancodes for these keys. They were swapped due to a Linux bug which has since been fixed [1]. Fix the scancodes for the AT set 1 to be correct - they include bit 0x80 which requires some special handling to avoid triggering asserts. Also ensure that the QNum scancodes remain as 0x71/0x72 to avoid the wire protocol changing. Finally, add the scancodes for AT set 2 since this is what Windows uses. [1] Linux commit 0ae051a19092 ("Input: atkbd - fix HANGEUL/HANJA keys") Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
2023-02-28Add Qemu qcode support for F13 to F24William1-12/+12
2022-08-23Fix macOS "ISO" keyPierre Ossman1-2/+2
This is actually the common ISO "102nd" key, found between the left shift and "Z". Note that this is still technically wrong, as macOS swaps the key codes for ANSI_Grave and ISO_Section for ISO layouts. This magic is not something we can encode here though, so that swapping will have to be done by the implementations using this data.
2021-11-02add more japanese mappingsgsittyz1-12/+14
2021-06-28Add QEMU QKeyCode "lang1" and "lang2"Akihiko Odaki1-2/+2
This corresponds to commit d7696ff884e35c6dacf83a7cbe3355e3b0a90125 of https://gitlab.com/qemu-project/qemu. Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
2020-11-11Fix scan codes for Korean keysPierre Ossman1-4/+4
No idea where the previous values are from, but they are not supported by any information we can find now.
2020-11-11Add HTML entries for Korean layout keysPierre Ossman1-2/+2
2020-11-11Add macOS entries for Japanese keyboardsPierre Ossman1-5/+5
Apple has a different layout for their Japanese keyboards compared to PC and are reusing the scan codes used on Korean layouts for their special keys.
2020-05-01Fix win32 keycode for VK_OEM_102Volker RĂ¼melin1-1/+1
The win32 keycode for VK_OEM_102 is 0xe2. The Microsoft docu- mentation for virtual-key codes agrees with mingw32/winuser.h. Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
2017-12-18Add missing QKeyCode values for JIS keyboardsMiika S1-4/+4
The AT set1 code for KEY_ISO is removed because it conflicts with KEY_KATAKANAHIRAGANA. Signed-off-by: Miika S <miika9764@gmail.com>
2017-10-19Fix mistake in Pause/SysRq mapping for SUN scancodeDaniel P. Berrange1-2/+2
The 0x15 scancode is actually referring to Pause, but was mistakenly recorded as a second scancode for SysRq Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-08Fix USB menu key mappingDaniel P. Berrange1-2/+2
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-08Remove ??? from some keynamesDaniel P. Berrange1-4/+4
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-08Fix ANSI_KeypadClear mapping for OSXDaniel P. Berrange1-3/+3
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-08Handle maps where 0x0 is a valid keyDaniel P. Berrange1-1/+1
With OS-X / ADB keycodes 0x0 refers to key 'A', so cannot be used as the default in the array. We must use 0xff instead and thus explicitly fill every array entry with 0xff if no mapping is available. To handle this for enum based source maps, we need to use the magic syntax [0 .... max] = value, to set the default value in all elements, and then override it afterwards for mappings which are known. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-08Add missing Help key entry for OS-X key codesDaniel P. Berrange1-1/+1
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Add many missing Sun scancodesDaniel P. Berrange1-15/+15
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Add Apple Desktop Bus scancodesDaniel P. Berrange1-539/+539
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Misc fixes in AT set 3 scancodesDaniel P. Berrange1-5/+5
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Fix AT set3 mapping for backslashDaniel P. Berrange1-8/+8
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Fix AT Set2 scancode for F7Daniel P. Berrange1-1/+1
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Add line for QKeyCode printDaniel P. Berrange1-1/+1
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Add line for QKeyCode asteriskDaniel P. Berrange1-0/+1
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Add some missing mappings for USB HIDDaniel P. Berrange1-0/+9
Some USB scan codes map to the same Linux key code, and we were missing the first mapping. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Add Sun/Sparc keyboard keycodesDaniel P. Berrange1-529/+529
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-07Add named constants for QKeyCode valuesDaniel P. Berrange1-529/+529
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-02Fix some keys on macOSPierre Ossman1-5/+5
The right command key was missing and the menu key was mis-assigned. Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-08-02Add mapping for XKEYBOARD key namesPierre Ossman2-513/+536
Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-08-02Add mapping for HTML key codesPierre Ossman2-511/+521
Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-07-13Add README for data columnsPierre Ossman1-0/+74
2017-07-13Rename X11 keycode header to keysymPierre Ossman1-1/+1
keycode means something else in X11, so let's adjust this header to avoid confusion.
2017-07-13Fix AT set 2 tablePierre Ossman1-44/+44
There were a lot of errors for the extended codes. Re-generate the entries based on the mapping Linux uses.
2017-07-13Merge XT columnsPierre Ossman1-511/+511
XT, Linux RAW and and AT set 1 are all really the same thing so merge them all together. Linux RAW uses a different encoding, but we can compute that as needed.
2017-02-15Initial import of codeDaniel P. Berrange1-0/+511
The data/keymaps.csv file is taken from the latest SPICE-GTK repository. All contributions from this original file in both SPICE-GTK and GTK-VNC repos were made under Red Hat copyright. Red Hat grants permission to relicense to dual GPL2 or 3-clause BSD. The data/keymap-gen tool is a brand new file. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>