Skip to content

Commit d00b762

Browse files
committed
final changes
1 parent 0c1f33d commit d00b762

File tree

1 file changed

+2
-2
lines changed
  • frontend/src/views/Player/EmulatorJS

1 file changed

+2
-2
lines changed

frontend/src/views/Player/EmulatorJS/Base.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare global {
4545
interface Navigator {
4646
keyboard: {
4747
lock: (keys: string[]) => Promise<void>;
48-
unlock: () => Promise<void>;
48+
unlock: () => void;
4949
};
5050
}
5151
}
@@ -188,7 +188,7 @@ onMounted(async () => {
188188
navigator.keyboard
189189
.lock(["Escape", "Tab", "AltLeft", "ControlLeft", "MetaLeft"])
190190
.catch(() => {});
191-
} else if (!document.fullscreenElement) {
191+
} else {
192192
navigator.keyboard.unlock();
193193
}
194194
});

0 commit comments

Comments
 (0)