Handle Escape key exit from pointer lock and remove redundant test case in third-person controller

This commit is contained in:
2026-04-27 19:01:02 +02:00
parent 552af93d72
commit 1a6d207801
2 changed files with 7 additions and 30 deletions

View File

@@ -6731,6 +6731,13 @@ export class RuntimeHost {
return;
}
if (
document.pointerLockElement === this.domElement &&
event.code === "Escape"
) {
return;
}
const playerInputBindings = this.resolveRuntimePlayerInputBindings();
const interactKeyboardBinding = playerInputBindings.keyboard.interact;
if (