ui/app: (ios) relay system focus events

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-06-20 19:05:06 +02:00
parent b9205d9965
commit 173d56a67a
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -110,6 +110,12 @@ func onDestroy(view C.CFTypeRef) {
w.view = 0
}
//export onFocus
func onFocus(view C.CFTypeRef, focus int) {
w := views[view]
w.w.event(key.Focus{Focus: focus != 0})
}
//export onLowMemory
func onLowMemory() {
runtime.GC()