summaryrefslogtreecommitdiff
path: root/kvmd/keyboard
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-05 05:58:33 +0300
committerDevaev Maxim <[email protected]>2020-09-05 05:58:33 +0300
commit0c8524898748c49cd9d54c2dcefa6b4a471532d0 (patch)
treec07a6036d34cf9d9959ce43332f592e3989240ba /kvmd/keyboard
parente106aaebed430a05721d7279eca8eecdccb13464 (diff)
minor 3.7 fixes
Diffstat (limited to 'kvmd/keyboard')
-rw-r--r--kvmd/keyboard/keysym.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/kvmd/keyboard/keysym.py b/kvmd/keyboard/keysym.py
index 2f2bc7a2..e3695b3c 100644
--- a/kvmd/keyboard/keysym.py
+++ b/kvmd/keyboard/keysym.py
@@ -130,10 +130,11 @@ def _read_keyboard_layout(path: str) -> Dict[int, At1Key]: # Keysym to evdev (a
ctrl=("ctrl" in rest),
)
- x11_code = _resolve_keysym(parts[0].upper())
- if "addupper" in rest and x11_code != 0:
- layout[x11_code] = At1Key(
- code=at1_code,
- shift=True,
- )
+ if "addupper" in rest:
+ x11_code = _resolve_keysym(parts[0].upper())
+ if x11_code != 0:
+ layout[x11_code] = At1Key(
+ code=at1_code,
+ shift=True,
+ )
return layout