prevent actions menu from appearing when inserting space key on chat

This commit is contained in:
Piotr 'pwh' Hanusiak 2022-03-28 15:27:29 +02:00 committed by David Négrier
parent 469f9d9533
commit ac9926b8d6

View File

@ -280,6 +280,9 @@ export class UserInputManager {
); );
this.scene.input.keyboard.on("keyup-SPACE", (event: Event) => { this.scene.input.keyboard.on("keyup-SPACE", (event: Event) => {
if (this.isInputDisabled) {
return;
}
this.userInputHandler.handleSpaceKeyUpEvent(event); this.userInputHandler.handleSpaceKeyUpEvent(event);
}); });
} }