mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +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) {
|
function handleKeyDown(event: KeyboardEvent) {
|
||||||
|
if (document.activeElement instanceof HTMLInputElement) return;
|
||||||
|
|
||||||
if (event.key === '1') {
|
if (event.key === '1') {
|
||||||
setDuel(
|
setDuel(
|
||||||
produce<Duel>((draft) => {
|
produce<Duel>((draft) => {
|
||||||
|
|||||||
Reference in new issue
Block a user