mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 02:41:54 +00:00
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
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue