Element focus change - Android
On Android, you can use an OnFocusChangeListener
to listen to focus changes. The onFocusChange
method is called when the element receives focus.
Be careful when using the onFocusChange
method: do not trigger any context change because they might confuse users.
webView.setOnFocusChangeListener { view, focused ->
if (focused) {
// Do not change context
}
}