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 28034be commit 2c6f682
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 @@ -473,8 +473,8 @@ def do_get_keycode(self, client_keycode:int, keyname:str, pressed:bool, modifier
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:
self.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 2c6f682

Please sign in to comment.