From 90f74619ed8c92a45bfedd393da3dbc480b37a9d Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 23 Mar 2023 14:23:31 +0200 Subject: pikvm/pikvm#947: Fixed missing XK_EuroSign --- kvmd/keyboard/keysym.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kvmd') 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 -- cgit v1.2.3