Skip to content

Commit

Permalink
#1665: also adjust the keymap we send to not include group=0 (shift t…
Browse files Browse the repository at this point in the history
…hem all down)

git-svn-id: https://xpra.org/svn/Xpra/trunk@17576 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 6, 2017
1 parent 7c83adb commit 7b42366
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/xpra/gtk_common/keymap.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env python
# This file is part of Xpra.
# Copyright (C) 2008 Nathaniel Smith <njs@pobox.com>
# Copyright (C) 2011-2013 Antoine Martin <antoine@devloop.org.uk>
# Copyright (C) 2011-2017 Antoine Martin <antoine@devloop.org.uk>
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

from xpra.os_util import WIN32
from xpra.log import Logger
log = Logger("keyboard")

Expand Down Expand Up @@ -45,6 +46,10 @@ def get_gtk_keymap(ignore_keys=[None, "VoidSymbol", "0xffffff"]):
else:
#gtk2:
for keyval, keycode, group, level in entries:
if WIN32:
if group==0:
continue
group -= 1
#assert keycode==i
name = gdk.keyval_name(keyval)
name = KEY_TRANSLATIONS.get((name, keyval, keycode), name)
Expand Down

0 comments on commit 7b42366

Please sign in to comment.