Skip to content

Commit

Permalink
Revert "#4396 only use exact match with keycode translation"
Browse files Browse the repository at this point in the history
This reverts commit 2c6f682.
  • Loading branch information
totaam committed Oct 28, 2024
1 parent fc39cd5 commit e7a3a8b
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
keycode = self.keycode_translation.get((client_keycode, keyname), 0)
if keycode:
if self.query_struct:
keycode = self.keycode_translation.get((client_keycode, keyname)) or client_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 e7a3a8b

Please sign in to comment.