summaryrefslogtreecommitdiff
path: root/kvmd/keyboard/printer.py
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/printer.py
parentf1910f7c8ec085eece1adc56ff999527881e71d9 (diff)
vnc: qemu ext keys
Diffstat (limited to 'kvmd/keyboard/printer.py')
-rw-r--r--kvmd/keyboard/printer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/kvmd/keyboard/printer.py b/kvmd/keyboard/printer.py
index acef102b..5553a01d 100644
--- a/kvmd/keyboard/printer.py
+++ b/kvmd/keyboard/printer.py
@@ -25,16 +25,17 @@ from typing import Dict
from typing import Generator
from .keysym import SymmapModifiers
+from .mappings import WebModifiers
# =====
def text_to_web_keys(
text: str,
symmap: Dict[int, Dict[int, str]],
- shift_key: str="ShiftLeft",
+ shift_key: str=WebModifiers.SHIFT_LEFT,
) -> Generator[Tuple[str, bool], None, None]:
- assert shift_key in ["ShiftLeft", "ShiftRight"]
+ assert shift_key in WebModifiers.SHIFTS
shifted = False
for ch in text: