From c231d524e684aa998646ee3b2e1af68c352d559e Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Fri, 1 May 2020 16:23:22 -0700 Subject: [PATCH] Transfer again --- platform_mac/mac_4ed.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform_mac/mac_4ed.mm b/platform_mac/mac_4ed.mm index f19bfa15..e2453606 100644 --- a/platform_mac/mac_4ed.mm +++ b/platform_mac/mac_4ed.mm @@ -937,6 +937,12 @@ mac_toggle_fullscreen(void){ [characters getCharacters:utf16 range:NSMakeRange(0, len)]; String_Const_u16 str_16 = SCu16(utf16, len); String_Const_u8 str_8 = string_u8_from_string_u16(&mac_vars.frame_arena, str_16).string; + for (i64 i = 0; i < str_8.size; i += 1){ + if (str_8.str[i] == '\r'){ + 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;