mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Dont check the return value of handleEvent
It's apparently meaningless, despite what the docs say
This commit is contained in:
parent
da96dfcad2
commit
39e56f1864
1 changed files with 1 additions and 3 deletions
|
|
@ -1247,13 +1247,11 @@ is_ascii_control_char(char x) {
|
|||
if (process_text && inpctx) {
|
||||
// this will call insertText which will fill up _glfw.ns.text
|
||||
in_key_handler = 2;
|
||||
const bool handled = [inpctx handleEvent:event];
|
||||
[inpctx handleEvent:event];
|
||||
in_key_handler = 0;
|
||||
if (marked_text_cleared_by_insert) {
|
||||
debug_key("Clearing pre-edit text");
|
||||
CLEAR_PRE_EDIT_TEXT;
|
||||
}
|
||||
if (handled || marked_text_cleared_by_insert) {
|
||||
if (_glfw.ns.text[0]) glfw_keyevent.text = _glfw.ns.text;
|
||||
else _glfw.ns.text[0] = old_first_char;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue