fix bug in actionhandler that causes log to stop logging

This commit is contained in:
Tamius Han 2020-01-30 01:06:02 +01:00
parent 0abd4fc776
commit 810fbbdc97

View File

@ -136,9 +136,9 @@ class ActionHandler {
preventAction(event) {
var activeElement = document.activeElement;
if(this.logger.canLog('keyboard')) {
if (this.logger.canLog('keyboard')) {
this.logger.pause(); // temp disable to avoid recursing;
const preventAction = this.preventAction();
const preventAction = this.preventAction(event);
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" +