From 7023c7a8ae135d50789b291073b7ccefd494f918 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 10 Jan 2022 21:15:24 +0530 Subject: [PATCH] ... --- glfw/cocoa_window.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index fb5b2cc8f..2fff85c8f 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -1128,7 +1128,7 @@ is_ascii_control_char(char x) { // keyboard unicode data is not available. if (process_text) { // this will call insertText with the text for this event, if any - [self interpretKeyEvents:[NSArray arrayWithObject:event]]; + [self interpretKeyEvents:@[event]]; } } else { static UniChar text[256]; @@ -1156,7 +1156,7 @@ is_ascii_control_char(char x) { marked_text_cleared_by_insert = false; if (process_text) { // this will call insertText which will fill up _glfw.ns.text - [self interpretKeyEvents:[NSArray arrayWithObject:event]]; + [self interpretKeyEvents:@[event]]; } else { window->ns.deadKeyState = 0; }