Skip to content

Commit

Permalink
#602 fix for altgr keys on "fr" keyboard layout: patch the keymap to …
Browse files Browse the repository at this point in the history
…use X11 key names

git-svn-id: https://xpra.org/svn/Xpra/trunk@6807 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 15, 2014
1 parent e38c116 commit 8f7d535
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/platform/win32/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def __init__(self):
self.last_key_event_sent = None
#workaround for "period" vs "KP_Decimal" with gtk2 (see ticket #586):
#translate "period" with keyval=46 and keycode=110 to KP_Decimal:
KEY_TRANSLATIONS[("period", 46, 110)] = "KP_Decimal"
KEY_TRANSLATIONS[("period", 46, 110)] = "KP_Decimal"
#workaround for "fr" keyboards, which use a different key name under X11:
KEY_TRANSLATIONS[("dead_tilde", 65107, 50)] = "asciitilde"
KEY_TRANSLATIONS[("dead_grave", 65104, 55)] = "grave"

def set_modifier_mappings(self, mappings):
KeyboardBase.set_modifier_mappings(self, mappings)
Expand Down

0 comments on commit 8f7d535

Please sign in to comment.