From 39e56f1864f547feac994e7fe2dee4ccf0539475 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 23 Jan 2022 12:47:29 +0530 Subject: [PATCH] Dont check the return value of handleEvent It's apparently meaningless, despite what the docs say --- glfw/cocoa_window.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index 7a17b0e3f..0f5344959 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -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; }