mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: focused element disallow shell switch
This commit is contained in:
1 parent
b434bc4c78
commit
754b16af10
1 file changed
+2
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user