I have a webview
into my Android app. My html has a textarea
and I want to know when the user hides the keyboard with the android back button.
On Titanium the android:back
event doesn't work, it isn't fired when the keyboard is hided.
And the blur()
event doesn't work too because when the keyboard is hided the textarea
doesn't lose the focus.
Please help. Thank you.
You can use androidback
on any Ti.UI.Window
or Ti.UI.TabGroup
top-level container. It was called android:back
until 3.0.0. And for the blur()
event, you can use the Ti.UI.Android.hideSoftKeyboard()
method.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.