fix: focused element disallow shell switch

This commit is contained in:
TrèsAbhi committed 2024-01-16 11:19:43 -06:00
1 parent b434bc4c78
commit 754b16af10
1 file changed
+2
+2
View File
@@ -42,6 +42,8 @@ export default function Page({ params }: { params: { id: string } }) {
});
function handleKeyDown(event: KeyboardEvent) {
if (document.activeElement instanceof HTMLInputElement) return;
if (event.key === '1') {
setDuel(
produce<Duel>((draft) => {