Allow IME to generate unicode characters using Alt+key which is used on OSX, I think
This commit is contained in:
parent
08f336769f
commit
24d0bb8bd5
@ -172,8 +172,7 @@ def interpret_text_event(codepoint, mods, window):
|
|||||||
if mods > defines.GLFW_MOD_SHIFT:
|
if mods > defines.GLFW_MOD_SHIFT:
|
||||||
if mods in alt_mods and not screen.extended_keyboard:
|
if mods in alt_mods and not screen.extended_keyboard:
|
||||||
data = chr(codepoint).encode('utf-8')
|
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
|
return b'' # Handled by interpret_key_event above
|
||||||
data = chr(codepoint).encode('utf-8')
|
data = chr(codepoint).encode('utf-8')
|
||||||
return data
|
return data
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user