diff options
author | Devaev Maxim <[email protected]> | 2020-07-16 21:58:06 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-16 21:58:06 +0300 |
commit | 2f640b7a08a9de8707f18e12452763125e354105 (patch) | |
tree | a59f5432ea0a7bcf16e91db43cf93fb7174019a4 /kvmd/keyboard | |
parent | 5613a7b2b5774a3d2b9773dd68880140f8e89d31 (diff) |
added power key to hids
Diffstat (limited to 'kvmd/keyboard')
-rw-r--r-- | kvmd/keyboard/mappings.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/keyboard/mappings.py b/kvmd/keyboard/mappings.py index ec90700c..2d6e57c5 100644 --- a/kvmd/keyboard/mappings.py +++ b/kvmd/keyboard/mappings.py @@ -148,6 +148,7 @@ KEYMAP: Dict[str, Key] = { "Numpad9": Key(serial=SerialKey(code=102), otg=OtgKey(code=97, is_modifier=False)), "Numpad0": Key(serial=SerialKey(code=103), otg=OtgKey(code=98, is_modifier=False)), "NumpadDecimal": Key(serial=SerialKey(code=104), otg=OtgKey(code=99, is_modifier=False)), + "Power": Key(serial=SerialKey(code=105), otg=OtgKey(code=102, is_modifier=False)), } @@ -312,6 +313,7 @@ X11_TO_AT1 = { 65511: At1Key(code=57435, shift=False), # XK_Meta_L 65512: At1Key(code=57436, shift=False), # XK_Meta_R 65383: At1Key(code=57437, shift=False), # XK_Menu + 269025071: At1Key(code=57438, shift=False), # XK_XF86_Sleep } @@ -420,4 +422,5 @@ AT1_TO_WEB = { 57435: "MetaLeft", 57436: "MetaRight", 57437: "ContextMenu", + 57438: "Power", } |