Skip to content

Commit

Permalink
#567: just tell the server that "control" will be missing from non-ke…
Browse files Browse the repository at this point in the history
…yboard 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
  • Loading branch information
totaam committed May 19, 2014
1 parent 8f2fba6 commit 08da62a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/xpra/platform/darwin/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 08da62a

Please sign in to comment.