Added mapping for AltGr key

This commit is contained in:
Martin Funk 2020-09-25 22:18:38 +02:00
parent 87a04e4e1f
commit 9e577fc5b1
3 changed files with 4 additions and 1 deletions

View File

@ -33,6 +33,7 @@ from typing import Optional
import Xlib.keysymdef.latin1
import Xlib.keysymdef.miscellany
import Xlib.keysymdef.xf86
import Xlib.keysymdef.xkb
import mako.template
@ -74,6 +75,7 @@ def _resolve_keysym(name: str) -> int:
Xlib.keysymdef.latin1,
Xlib.keysymdef.miscellany,
Xlib.keysymdef.xf86,
Xlib.keysymdef.xkb,
]:
code = getattr(module, name, None)
if code is not None:

View File

@ -81,7 +81,7 @@ AltLeft,79,KEY_LEFT_ALT,^0x04,reg:0x11,0x38,XK_Alt_L
MetaLeft,80,KEY_LEFT_GUI,^0x08,spec:0x1f,0xe05b,XK_Meta_L
ControlRight,81,KEY_RIGHT_CTRL,^0x10,spec:0x14,0xe01d,XK_Control_R
ShiftRight,82,KEY_RIGHT_SHIFT,^0x20,reg:0x59,0x36,XK_Shift_R
AltRight,83,KEY_RIGHT_ALT,^0x40,spec:0x11,0xe038,XK_Alt_R
AltRight,83,KEY_RIGHT_ALT,^0x40,spec:0x11,0xe038,"XK_Alt_R,XK_ISO_Level3_Shift"
MetaRight,84,KEY_RIGHT_GUI,^0x80,spec:0x27,0xe05c,XK_Meta_R
Pause,85,KEY_PAUSE,0x48,pause:0xff,0xe046,XK_Pause
ScrollLock,86,KEY_SCROLL_LOCK,0x47,reg:0x7e,0x46,XK_Scroll_Lock

1 web_name serial_code arduino_name otg_key ps2_key at1_code x11_names
81 MetaLeft 80 KEY_LEFT_GUI ^0x08 spec:0x1f 0xe05b XK_Meta_L
82 ControlRight 81 KEY_RIGHT_CTRL ^0x10 spec:0x14 0xe01d XK_Control_R
83 ShiftRight 82 KEY_RIGHT_SHIFT ^0x20 reg:0x59 0x36 XK_Shift_R
84 AltRight 83 KEY_RIGHT_ALT ^0x40 spec:0x11 0xe038 XK_Alt_R XK_Alt_R,XK_ISO_Level3_Shift
85 MetaRight 84 KEY_RIGHT_GUI ^0x80 spec:0x27 0xe05c XK_Meta_R
86 Pause 85 KEY_PAUSE 0x48 pause:0xff 0xe046 XK_Pause
87 ScrollLock 86 KEY_SCROLL_LOCK 0x47 reg:0x7e 0x46 XK_Scroll_Lock

View File

@ -299,6 +299,7 @@ X11_TO_AT1 = {
65421: At1Key(code=57372, shift=False), # XK_KP_Enter
65508: At1Key(code=57373, shift=False), # XK_Control_R
65455: At1Key(code=57397, shift=False), # XK_KP_Divide
65027: At1Key(code=57400, shift=False), # XK_ISO_Level3_Shift
65514: At1Key(code=57400, shift=False), # XK_Alt_R
65299: At1Key(code=57414, shift=False), # XK_Pause
65360: At1Key(code=57415, shift=False), # XK_Home