mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
allow user to prevent spatial navigation with shift key
This commit is contained in:
parent
298f3ea10e
commit
1a967571f2
1 changed files with 6 additions and 4 deletions
|
|
@ -13,10 +13,12 @@ const CredentialsTextInput = React.forwardRef((props, ref) => {
|
|||
event.nativeEvent.spatialNavigationPrevented = true;
|
||||
}
|
||||
|
||||
if (event.key === 'ArrowDown') {
|
||||
window.navigate('down');
|
||||
} else if (event.key === 'ArrowUp') {
|
||||
window.navigate('up');
|
||||
if (!event.shiftKey) {
|
||||
if (event.key === 'ArrowDown') {
|
||||
window.navigate('down');
|
||||
} else if (event.key === 'ArrowUp') {
|
||||
window.navigate('up');
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [props.onKeyDown]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue