Open GoogleCodeExporter opened 9 years ago
Further testing shows that this happens if you enable GTK themes with the by
starting
xpra with dbus and gnome-settings-daemon, but not otherwise.
I'm not sure why this is. After some more poking, I discovered the root cause
of the
problem - server.py:435
return self._keymap.get_entries_for_keyval(keyval)[0][0]
This will fail if get_entries_for_keyval returns more than one keycode for a
given
keyval - i.e. in my case if you look up the keyval '60' (for '<') then it
returns the
following:
((52, 0, 3), (59, 0, 1))
This is because you can either obtain the < symbol from the z-key at keyboard
level
3, or from the comma key at level 1.
I've looked at the code and it looks like it will be complicated to determine
what
the current group and level are. XKB defines rules for working this out and you
can
print them with xkbcomp, but I don't know how to access this stuff with GDK.
An immediate work-around is to remove duplicate keys from your keymap, or to
just use
some kind of generic rule for determining the keyboard level, and ignore the
group.
This would probably solve it for one type of keyboard only, though.
Original comment by thefishf...@gmail.com
on 27 Apr 2010 at 6:08
Original issue reported on code.google.com by
thefishf...@gmail.com
on 26 Apr 2010 at 2:32