When trying to process input outside of a specific input field, Android always puts a focus on the first element of the currently selected or focused view (also highlighted with color). This is not only reproducible inside a custom developed app, but also perceivable in system settings.
Main question: How can this behavior be enabled or disabled, either globally or on app side?
How to to reproduce: Just connect a Bluetooth or wired keyboard to your Android device, go to system settings, scroll a little down, and hit a numeric or alphabetic key. Boom. The first element that is visible to the user is automatically focused.
coolersham is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.