summaryrefslogtreecommitdiff
path: root/kvmd/keyboard/mappings.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/keyboard/mappings.py')
-rw-r--r--kvmd/keyboard/mappings.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/kvmd/keyboard/mappings.py b/kvmd/keyboard/mappings.py
index 310c50a0..0185a0bc 100644
--- a/kvmd/keyboard/mappings.py
+++ b/kvmd/keyboard/mappings.py
@@ -154,6 +154,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