Team Create (���������� ��������������) + ���������� ���� + ������ 16/17/20/40/44/05 #34
@ -2565,7 +2565,9 @@ export class BabylonScene {
|
||||
|
||||
const onKeyDown = (e) => {
|
||||
if (isTypingTarget(e.target)) return;
|
||||
this._codes.add(e.code);
|
||||
// Клавиши с Ctrl/Cmd — это шорткаты (Ctrl+D/C/V/Z...), а не движение
|
||||
// камеры. Не кладём их в _codes, иначе камера «уезжает» (баг Ctrl+D).
|
||||
if (!e.ctrlKey && !e.metaKey) this._codes.add(e.code);
|
||||
if (e.shiftKey) this._shiftDown = true;
|
||||
// Маршрутизация game.onKey в Play-режиме
|
||||
if (this._isPlaying && this.gameRuntime) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user