NoriginMedia / Norigin-Spatial-Navigation

React Hooks based Spatial Navigation (Key & Remote Control Navigation) / Web Browsers, Smart TVs and Connected TVs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Magic remote Support?

chetan264b opened this issue · comments

Does this library provide magic remote support? I have been working on it and found that if I click any item with mouse or magic remote, The Okay/Enter key stops working. But the focus movements continues to work on arrow press(left,right,up,down).

Hello.

This happens because after Click the focus is set natively on the DOM node (which might be different from what our library thinks). So when you move the focus of our library, the native focus stays on the same node and catches all Enter presses.
The new release we just made might solve this, you need to enable the new flag shouldFocusDOMNode and it will sync the native browser focus with the library focus. So when you move the arrow keys, it will also move the native focus.
We haven't seen this issue on different TVs though, for example we actively use magic remote support for LGs and bind the interactions onClick, and it works fine for us. Let us know if the problem persists after you upgrade to the newest version and enable the new feature.