mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
Allow IME to generate unicode characters using Alt+key which is used on OSX, I think
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user