From 8a34469211edc61adf831470eb1b21aae1376ea5 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 8 Jul 2019 19:04:57 +0200 Subject: [PATCH] Revert "ui/app: (iOS) treat the \n character as a return key chord" It's not the way of the soft keyboards. This reverts commit a0c04cb3b2f3d3bbcbb38701711662b6f1245b87. --- ui/app/os_ios.go | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/ui/app/os_ios.go b/ui/app/os_ios.go index 88a011e9..6fd98b42 100644 --- a/ui/app/os_ios.go +++ b/ui/app/os_ios.go @@ -152,16 +152,11 @@ func onDeleteBackward(view C.CFTypeRef) { } //export onText -func onText(view C.CFTypeRef, cstr *C.char) { +func onText(view C.CFTypeRef, str *C.char) { w := views[view] - str := C.GoString(cstr) - if str != "\n" { - w.w.event(key.EditEvent{ - Text: str, - }) - } else { - w.onKeyCommand(key.NameReturn) - } + w.w.event(key.EditEvent{ + Text: C.GoString(str), + }) } //export onTouch