You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/04/29 16:45:27 UTC

[GitHub] [cordova-android] dpogue commented on issue #722: Keyboard focus not restored to last element on app resume

dpogue commented on issue #722: Keyboard focus not restored to last element on app resume
URL: https://github.com/apache/cordova-android/issues/722#issuecomment-487654645
 
 
   Maybe we can check if the view [`hasFocus()`](https://developer.android.com/reference/android/view/View.html#hasFocus()) before trying to focus it? Theoretically if the webview has focus and is a child of the decorView, then `hasFocus()` should return true and we can skip calling `requestFocus()`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org