From 810fbbdc97a143334812a6b7e0126567fceba15b Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 30 Jan 2020 01:06:02 +0100 Subject: [PATCH] fix bug in actionhandler that causes log to stop logging --- src/ext/lib/ActionHandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ext/lib/ActionHandler.js b/src/ext/lib/ActionHandler.js index 4685219..b63f219 100644 --- a/src/ext/lib/ActionHandler.js +++ b/src/ext/lib/ActionHandler.js @@ -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" +