From 9625ce293e11db938323c5a9e3b112117fd140c5 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Fri, 1 May 2020 17:27:37 -0700 Subject: [PATCH] Okay different experiment --- platform_mac/mac_4ed.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform_mac/mac_4ed.mm b/platform_mac/mac_4ed.mm index e2453606..fb38fc2b 100644 --- a/platform_mac/mac_4ed.mm +++ b/platform_mac/mac_4ed.mm @@ -919,6 +919,9 @@ mac_toggle_fullscreen(void){ // NOTE(yuval): Process keyboard event [self process_keyboard_event:event down:true]; + [self interpretKeyEvents:[NSArray arrayWithObject:event]] + +#if 0 // NOTE(yuval): Process TextInsert event { NSString *characters = [event characters]; @@ -942,7 +945,6 @@ mac_toggle_fullscreen(void){ str_8.str[i] = '\n'; } } - Input_Event *event = push_input_event(&mac_vars.frame_arena, &mac_vars.input_chunk.trans.event_list); event->kind = InputEventKind_TextInsert; @@ -961,6 +963,7 @@ mac_toggle_fullscreen(void){ } } } +#endif } - (void)keyUp:(NSEvent*)event{