Fix to use clear All Keys
This commit is contained in:
parent
64cd07cc39
commit
b92b7304b0
@ -332,7 +332,7 @@ export class ConsoleGlobalMessageManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
active(){
|
active(){
|
||||||
this.userInputManager.clearAllInputKeyboard();
|
this.userInputManager.clearAllKeys();
|
||||||
this.divMainConsole.style.top = '0';
|
this.divMainConsole.style.top = '0';
|
||||||
this.activeConsole = true;
|
this.activeConsole = true;
|
||||||
}
|
}
|
||||||
|
@ -1263,7 +1263,7 @@ export class GameScene extends ResizableScene implements CenterListener {
|
|||||||
|
|
||||||
private bannedUser(){
|
private bannedUser(){
|
||||||
this.cleanupClosingScene();
|
this.cleanupClosingScene();
|
||||||
this.userInputManager.clearAllInputKeyboard();
|
this.userInputManager.clearAllKeys();
|
||||||
this.scene.start(ErrorSceneName, {
|
this.scene.start(ErrorSceneName, {
|
||||||
title: 'Banned',
|
title: 'Banned',
|
||||||
subTitle: 'You was banned of WorkAdventure',
|
subTitle: 'You was banned of WorkAdventure',
|
||||||
|
@ -269,7 +269,7 @@ export class MenuScene extends Phaser.Scene {
|
|||||||
middleX = 0;
|
middleX = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
gameManager.getCurrentGameScene(this).userInputManager.clearAllInputKeyboard();
|
gameManager.getCurrentGameScene(this).userInputManager.clearAllKeys();
|
||||||
|
|
||||||
this.tweens.add({
|
this.tweens.add({
|
||||||
targets: this.gameReportElement,
|
targets: this.gameReportElement,
|
||||||
|
@ -59,10 +59,14 @@ export class UserInputManager {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
clearAllInputKeyboard(){
|
clearAllListeners(){
|
||||||
this.Scene.input.keyboard.removeAllListeners();
|
this.Scene.input.keyboard.removeAllListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearAllKeys(){
|
||||||
|
this.Scene.input.keyboard.removeAllKeys();
|
||||||
|
}
|
||||||
|
|
||||||
getEventListForGameTick(): ActiveEventList {
|
getEventListForGameTick(): ActiveEventList {
|
||||||
const eventsMap = new ActiveEventList();
|
const eventsMap = new ActiveEventList();
|
||||||
this.KeysCode.forEach(d => {
|
this.KeysCode.forEach(d => {
|
||||||
|
@ -61,7 +61,7 @@ export class DiscussionManager {
|
|||||||
const inputMessage: HTMLInputElement = document.createElement('input');
|
const inputMessage: HTMLInputElement = document.createElement('input');
|
||||||
inputMessage.onfocus = () => {
|
inputMessage.onfocus = () => {
|
||||||
if(this.userInputManager) {
|
if(this.userInputManager) {
|
||||||
this.userInputManager.clearAllInputKeyboard();
|
this.userInputManager.clearAllKeys();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
inputMessage.onblur = () => {
|
inputMessage.onblur = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user