'Arrow keys are not sent to dispatchKeyEvent() or onTouch() In WebView While Accessibility Is Turned On

I'm facing an issue when I turn on the talkback service in my Android TV box, the navigation keys(up, down, right, left) are not sent to dispatchKeyEvent().

Webview has a list of item that I select from them using the navigation keys.

I tried to create a custom webview and override onTouchEvent() but it didn't work.

Pressing Select button or back works but not navigation keys.

I created an accessibility service and I was able to listen to all keys for my application but this doesn't fix the issue because it is not possible to do that.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source