Skip to content

Commit

Permalink
#4396 only use exact match with keycode translation
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 20, 2024
1 parent c4a4f3e commit 0a3334f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/x11/server/keyboard_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ def do_get_keycode(self, client_keycode: int, keyname: str, pressed: bool, modif
return -1, group
if self.raw:
return client_keycode, group
if self.query_struct:
keycode = self.keycode_translation.get((client_keycode, keyname)) or client_keycode
keycode = self.keycode_translation.get((client_keycode, keyname), 0)
if keycode:
kmlog(keyname, "do_get_keycode (%i, %s)=%s (native keymap)", client_keycode, keyname, keycode)
return keycode, group
return self.find_matching_keycode(client_keycode, keyname, pressed, modifiers, keyval, keystr, group)
Expand Down

0 comments on commit 0a3334f

Please sign in to comment.