mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
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 a0c04cb3b2.
This commit is contained in:
+4
-9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user