summaryrefslogtreecommitdiff
path: root/kvmd/keyboard/mappings.py.mako
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-08 15:26:37 +0300
committerDevaev Maxim <[email protected]>2020-10-08 15:26:37 +0300
commita0b920a9d6ca0a9b1ac65276e08292dc30aed2d8 (patch)
tree70e591dcbc6472ac9e6f3b7da750e7f29df1637d /kvmd/keyboard/mappings.py.mako
parentf1910f7c8ec085eece1adc56ff999527881e71d9 (diff)
vnc: qemu ext keys
Diffstat (limited to 'kvmd/keyboard/mappings.py.mako')
-rw-r--r--kvmd/keyboard/mappings.py.mako27
1 files changed, 27 insertions, 0 deletions
diff --git a/kvmd/keyboard/mappings.py.mako b/kvmd/keyboard/mappings.py.mako
index 1c13b8a9..399ed75e 100644
--- a/kvmd/keyboard/mappings.py.mako
+++ b/kvmd/keyboard/mappings.py.mako
@@ -51,6 +51,33 @@ KEYMAP: Dict[str, Key] = {
# =====
+class WebModifiers:
+ SHIFT_LEFT = "ShiftLeft"
+ SHIFT_RIGHT = "ShiftRight"
+ SHIFTS = set([SHIFT_LEFT, SHIFT_RIGHT])
+
+ ALT_LEFT = "AltLeft"
+ ALT_RIGHT = "AltRight"
+ ALTS = set([ALT_LEFT, ALT_RIGHT])
+
+ CTRL_LEFT = "ControlLeft"
+ CTRL_RIGHT = "ControlRight"
+ CTRLS = set([CTRL_RIGHT, CTRL_RIGHT])
+
+
+class X11Modifiers:
+ SHIFT_LEFT = 65505
+ SHIFT_RIGHT = 65506
+ SHIFTS = set([SHIFT_LEFT, SHIFT_RIGHT])
+
+ ALTGR = 65027 # XK_ISO_Level3_Shift
+
+ CTRL_LEFT = 65507
+ CTRL_RIGHT = 65508
+ CTRLS = set([CTRL_LEFT, CTRL_RIGHT])
+
+
+# =====
@dataclasses.dataclass(frozen=True)
class At1Key:
code: int