disable right arrow when searching
This commit is contained in:
@@ -45,7 +45,9 @@ export default function Home() {
|
||||
function handleKeypress(e: KeyboardEvent) {
|
||||
switch (e.key) {
|
||||
case 'ArrowRight': {
|
||||
onNextBackground();
|
||||
if (document.activeElement?.id === 'search') {
|
||||
onNextBackground();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'Escape': {
|
||||
|
||||
Reference in New Issue
Block a user