Skip to content

Commit

Permalink
only use lowercase for string keys
Browse files Browse the repository at this point in the history
fixup for d9126ae
  • Loading branch information
totaam committed Aug 5, 2024
1 parent 4d4ba9a commit 7c9be1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xpra/x11/server_keyboard_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit 7c9be1a

Please sign in to comment.