Skip to content

Commit

Permalink
#3183 '-' now removes the shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jun 29, 2021
1 parent 5e6cfe7 commit 9096ffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xpra/client/keyboard_helper.py
Expand Up @@ -153,7 +153,7 @@ def _check_shortcut(self, window, key_name, modifiers, depressed, shortcut):
if not depressed:
#when the key is released, just ignore it - do NOT send it to the server!
return True
if action in ("pass", "_"):
if action=="pass":
return False
try:
method = getattr(window, action)
Expand Down
3 changes: 2 additions & 1 deletion xpra/client/keyboard_shortcuts_parser.py
Expand Up @@ -156,7 +156,8 @@ def parse_shortcuts(strs=(), shortcut_modifiers=(), modifier_names=()):
key_shortcuts = shortcuts.get(keyname, [])
#remove any existing action using the same modifiers:
key_shortcuts = [x for x in key_shortcuts if x[0]!=modifiers]
key_shortcuts.append((modifiers, action, args))
if action!="_":
key_shortcuts.append((modifiers, action, args))
shortcuts[keyname] = key_shortcuts
log("shortcut(%s)=%s", s, csv((modifiers, action, args)))
log("parse_shortcuts(%s)=%s" % (str(strs), shortcuts))
Expand Down

0 comments on commit 9096ffb

Please sign in to comment.