Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
None
-
None
-
None
Description
I have a Cordova app running on a keyboard-driven device: it's a TV set-top box without any touchscreen, with Android 7.1.2. The app can launch other activities. Whenever the Cordova app resumes, the focus is moved to another DOM element, the DOM element that had the focus before the app was paused is lost. The order of precedence seems to be:
- element with tabIndex="0" (or anything !="-1")
- natively focusable elements, like <input>
- <body>
This seems to be caused by the fix for CB-7172. If I comment the fix, the focus is correctly restored to the element that had the focus before pausing.
This is particularly annoying if the app contains an <input> element, as this will trigger softkeyboard by default when the app is resumed.