Skip to content

Commit

Permalink
#4449 keep existing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 5, 2025
1 parent ca39bfe commit 1c7cd35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/x11/server/keyboard_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def set_keymap(self, translate_only=False) -> None:
# if the client does not provide a full native keymap with all the keycodes,
# try to preserve the initial server keycodes and translate the client keycodes instead:
# (used by non X11 clients like osx,win32 or HTML5)
self.keycode_translation = set_keycode_translation(self.x11_keycodes, self.keycodes)
self.keycode_translation.update(set_keycode_translation(self.x11_keycodes, self.keycodes))
else:
self.keycode_translation = {}
self.add_gtk_keynames()
Expand All @@ -390,6 +390,7 @@ def set_keymap(self, translate_only=False) -> None:
self.keycode_translation = {}
log("keyboard raw mode, keycode translation left empty")
self.compute_modifiers()

self.compute_client_modifier_keycodes()
log("keyname_for_mod=%s", self.keynames_for_mod)
clean_keyboard_state()
Expand Down

0 comments on commit 1c7cd35

Please sign in to comment.