Handle extra non-latin shortcuts only on Linux and perform keycode trick only on Windows
@@ -629,6 +629,11 @@ class Workbench(tk.Tk):
for extra_sequence in extra_sequences:
self.bind_all(extra_sequence, dispatch, True)
+ if ("greek_" not in extra_sequence.lower()
+ or running_on_linux()):
+ # Use greek alternatives only on Linux
+ # (they are not required on Mac
+ # and cause double events on Windows)
register_latin_shortcut(self._latin_shortcuts, sequence, handler, tester)
@@ -1577,6 +1582,7 @@ class Workbench(tk.Tk):
self._destroyed = True
def _on_all_key_presses(self, event):
+ if running_on_windows():
ui_utils.handle_mistreated_latin_shortcuts(self._latin_shortcuts, event)
def focus_get(self) -> Optional[tk.Widget]:
