diff options
author | Devaev Maxim <[email protected]> | 2020-03-20 03:07:27 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-03-20 03:07:27 +0300 |
commit | d5ae32b1326fc5ac9207193d7679b34e0ceec4c7 (patch) | |
tree | 43bb961fd3006c06dffec900a2c84fb8387302c0 /kvmd/keymap.py.mako | |
parent | ab6264bd5e65497121139eab6deae353e06d592f (diff) |
vnc
Diffstat (limited to 'kvmd/keymap.py.mako')
-rw-r--r-- | kvmd/keymap.py.mako | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/kvmd/keymap.py.mako b/kvmd/keymap.py.mako index 219cb186..0f9e7ef0 100644 --- a/kvmd/keymap.py.mako +++ b/kvmd/keymap.py.mako @@ -46,9 +46,26 @@ class Key: # ===== KEYMAP: Dict[str, Key] = { % for km in sorted(keymap, key=operator.attrgetter("serial_code")): - "${km.web_key}": Key( + "${km.web_name}": Key( serial=SerialKey(code=${km.serial_code}), otg=OtgKey(code=${km.otg_code}, is_modifier=${km.otg_is_modifier}), ), % endfor } + + +# ===== +X11_TO_AT1 = { +% for km in sorted(keymap, key=operator.attrgetter("at1_code")): + % for code in sorted(km.x11_codes): + ${code}: ${km.at1_code}, + % endfor +% endfor +} + + +AT1_TO_WEB = { +% for km in sorted(keymap, key=operator.attrgetter("at1_code")): + ${km.at1_code}: "${km.web_name}", +% endfor +} |