Skip to content

Commit

Permalink
make it consistent: keyval is a number
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@9193 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 29, 2015
1 parent de12014 commit ba0e04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/gtk_common/keymap.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_gtk_keymap(ignore_keys=[None, "VoidSymbol", "0xffffff"]):
name = gdk.keyval_name(keyval)
name = KEY_TRANSLATIONS.get((name, keyval, keycode), name)
if name not in ignore_keys:
keycodes.append((keyval or "", name or "", keycode or 0, key.group or 0, key.level or 0))
keycodes.append((keyval or 0, name or "", keycode or 0, key.group or 0, key.level or 0))
else:
#gtk2:
for keyval, keycode, group, level in entries:
Expand Down

0 comments on commit ba0e04f

Please sign in to comment.