summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2025-01-02 19:11:57 +0200
committerMaxim Devaev <[email protected]>2025-01-02 19:17:50 +0200
commit5d8633556e2e4448e3fc322d68890fe1ea61624a (patch)
tree2d227f00ab9658a7e802cef21ed85756092032ed
parentebda7ea03d178ebf93f115eaa75cf059e010cd96 (diff)
fixed missing modifiers mapping
-rw-r--r--kvmd/keyboard/mappings.py8
-rw-r--r--kvmd/keyboard/mappings.py.mako8
2 files changed, 13 insertions, 3 deletions
diff --git a/kvmd/keyboard/mappings.py b/kvmd/keyboard/mappings.py
index bfefa712..57744cea 100644
--- a/kvmd/keyboard/mappings.py
+++ b/kvmd/keyboard/mappings.py
@@ -168,9 +168,13 @@ class WebModifiers:
CTRL_LEFT = "ControlLeft"
CTRL_RIGHT = "ControlRight"
- CTRLS = set([CTRL_RIGHT, CTRL_RIGHT])
+ CTRLS = set([CTRL_LEFT, CTRL_RIGHT])
+
+ META_LEFT = "MetaLeft"
+ META_RIGHT = "MetaRight"
+ METAS = set([META_LEFT, META_RIGHT])
- ALL = (SHIFTS | ALTS | CTRLS)
+ ALL = (SHIFTS | ALTS | CTRLS | METAS)
class X11Modifiers:
diff --git a/kvmd/keyboard/mappings.py.mako b/kvmd/keyboard/mappings.py.mako
index a8df423c..1be41854 100644
--- a/kvmd/keyboard/mappings.py.mako
+++ b/kvmd/keyboard/mappings.py.mako
@@ -60,7 +60,13 @@ class WebModifiers:
CTRL_LEFT = "ControlLeft"
CTRL_RIGHT = "ControlRight"
- CTRLS = set([CTRL_RIGHT, CTRL_RIGHT])
+ CTRLS = set([CTRL_LEFT, CTRL_RIGHT])
+
+ META_LEFT = "MetaLeft"
+ META_RIGHT = "MetaRight"
+ METAS = set([META_LEFT, META_RIGHT])
+
+ ALL = (SHIFTS | ALTS | CTRLS | METAS)
class X11Modifiers: