From 7c9be1a19755a96c476db74c8b176accf554caa5 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 5 Aug 2024 21:54:13 +0700 Subject: [PATCH] only use lowercase for string keys fixup for d9126ae1d2f163666d066aa0e55c5fd0987d3020 --- xpra/x11/server_keyboard_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xpra/x11/server_keyboard_config.py b/xpra/x11/server_keyboard_config.py index 6acf804900..2e26ea0787 100644 --- a/xpra/x11/server_keyboard_config.py +++ b/xpra/x11/server_keyboard_config.py @@ -399,9 +399,9 @@ def add_gtk_keynames(self) -> None: def add_loose_matches(self) -> None: # add lowercase versions of all keynames - for keyname, keycode in tuple(self.keycode_translation.items()): - if not keyname.islower(): - self.keycode_translation[keyname.lower()] = keycode + for key, keycode in tuple(self.keycode_translation.items()): + if isinstance(key, str) and not key.islower(): + self.keycode_translation[key.lower()] = keycode def set_default_keymap(self) -> None: """