Allow IME to generate unicode characters using Alt+key which is used on OSX, I think

This commit is contained in:
Kovid Goyal 2017-05-20 12:01:50 +05:30
parent 08f336769f
commit 24d0bb8bd5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -172,8 +172,7 @@ def interpret_text_event(codepoint, mods, window):
if mods > defines.GLFW_MOD_SHIFT:
if mods in alt_mods and not screen.extended_keyboard:
data = chr(codepoint).encode('utf-8')
if len(data) == 1:
return b'\x1b' + data
return b'\x1b' + data
return b'' # Handled by interpret_key_event above
data = chr(codepoint).encode('utf-8')
return data