change(ui): don't trigget player actions while input field is focused
This commit is contained in:
parent
bb09e7f2ed
commit
98151b1d03
1 changed files with 3 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ function PlayerControls(props: Props) {
|
|||
|
||||
React.useEffect(() => {
|
||||
const handleKeyboard = (e: KeyboardEvent) => {
|
||||
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) {
|
||||
return;
|
||||
}
|
||||
if (e.key === 'ArrowRight') {
|
||||
arrowForwardRef.current.focus();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue