fix bug in actionhandler that causes log to stop logging
This commit is contained in:
parent
0abd4fc776
commit
810fbbdc97
@ -136,9 +136,9 @@ class ActionHandler {
|
|||||||
preventAction(event) {
|
preventAction(event) {
|
||||||
var activeElement = document.activeElement;
|
var activeElement = document.activeElement;
|
||||||
|
|
||||||
if(this.logger.canLog('keyboard')) {
|
if (this.logger.canLog('keyboard')) {
|
||||||
this.logger.pause(); // temp disable to avoid recursing;
|
this.logger.pause(); // temp disable to avoid recursing;
|
||||||
const preventAction = this.preventAction();
|
const preventAction = this.preventAction(event);
|
||||||
this.logger.resume(); // undisable
|
this.logger.resume(); // undisable
|
||||||
|
|
||||||
this.logger.log('info', 'keyboard', "[ActionHandler::preventAction] Testing whether we're in a textbox or something. Detailed rundown of conditions:\n" +
|
this.logger.log('info', 'keyboard', "[ActionHandler::preventAction] Testing whether we're in a textbox or something. Detailed rundown of conditions:\n" +
|
||||||
|
Loading…
Reference in New Issue
Block a user