From 3185dc5819b248d54e09a900440881e8fbef811c Mon Sep 17 00:00:00 2001 From: cocos02 Date: Tue, 9 Jun 2026 19:46:51 +0800 Subject: [PATCH] fix: change pause key from Space to P, disable pause during QTE --- src/App.vue | 4 ++-- src/components/AccessibilitySettings.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 58e5449..fa41813 100644 --- a/src/App.vue +++ b/src/App.vue @@ -127,7 +127,7 @@ watch(() => store.currentScene?.id, async (newId) => { function onGlobalKeydown(e: KeyboardEvent) { const key = e.key - if (key === ' ' && store.pauseEnabled && started.value && !store.gameEnded) { + if (key === 'p' && !store.qteActive && store.pauseEnabled && started.value && !store.gameEnded) { const activeEl = document.activeElement if (!activeEl || activeEl.tagName === 'BODY' || activeEl === document.body) { e.preventDefault() @@ -289,7 +289,7 @@ init() />
已暂停
-
点击或按 Space 继续
+
点击或按 P 继续
- 可暂停 (Space) + 可暂停 (P)