From 08da62ad5a32a998a07035c3db0e0246b4466f3f Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 19 May 2014 03:07:42 +0000 Subject: [PATCH] #567: just tell the server that "control" will be missing from non-keyboard events (since it may be missing when swap_keys is enabled) git-svn-id: https://xpra.org/svn/Xpra/trunk@6515 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/platform/darwin/keyboard.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xpra/platform/darwin/keyboard.py b/src/xpra/platform/darwin/keyboard.py index f05bba2531..9babe829f6 100644 --- a/src/xpra/platform/darwin/keyboard.py +++ b/src/xpra/platform/darwin/keyboard.py @@ -34,6 +34,13 @@ def __init__(self): self.num_lock_keycode = NUM_LOCK_KEYCODE self.key_translations = {} + def get_keymap_modifiers(self): + """ + Override superclass so we can tell the server + that 'control' will also be missing from non key events modifiers + """ + return {}, [], ["lock", "control"] + def set_modifier_mappings(self, mappings): KeyboardBase.set_modifier_mappings(self, mappings) self.meta_modifier = self.modifier_keys.get("Meta_L") or self.modifier_keys.get("Meta_R")