Skip to content

Commit

Permalink
#2560 don't try to find a keycode for no data (no keyname, no client …
Browse files Browse the repository at this point in the history
…keycode)

git-svn-id: https://xpra.org/svn/Xpra/trunk@25060 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 23, 2020
1 parent 0ea0972 commit e8a6614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xpra/server/keyboard_config_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def make_keymask_match(self, modifier_list, ignored_modifier_keycode=None, ignor
pass

def get_keycode(self, client_keycode, keyname, pressed, modifiers, group):
if not keyname and client_keycode<0:
return -1
if not pressed:
keycode = self.pressed_translation.get(client_keycode)
if keycode:
Expand Down

0 comments on commit e8a6614

Please sign in to comment.