diff options
author | Maxim Devaev <[email protected]> | 2023-03-23 14:23:31 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-03-23 14:24:00 +0200 |
commit | 90f74619ed8c92a45bfedd393da3dbc480b37a9d (patch) | |
tree | 594fef7544b847785d274682fb0e0b78f800f657 /kvmd/keyboard | |
parent | cd97509c1bc765e5fbe19c26def565928a1a8727 (diff) |
pikvm/pikvm#947: Fixed missing XK_EuroSign
Diffstat (limited to 'kvmd/keyboard')
-rw-r--r-- | kvmd/keyboard/keysym.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd/keyboard/keysym.py b/kvmd/keyboard/keysym.py index 6ba7bd48..dd311e98 100644 --- a/kvmd/keyboard/keysym.py +++ b/kvmd/keyboard/keysym.py @@ -81,7 +81,9 @@ def build_symmap(path: str) -> dict[int, dict[int, str]]: # x11 keysym -> [(mod # ===== @functools.lru_cache() def _get_keysyms() -> dict[str, int]: - keysyms: dict[str, int] = {} + keysyms: dict[str, int] = { + "EuroSign": 0x20AC, # FIXME: https://github.com/python-xlib/python-xlib/pull/264 + } for (finder, module_name, _) in pkgutil.walk_packages(Xlib.keysymdef.__path__): if not isinstance(finder, importlib.machinery.FileFinder): continue |