From fe305528eea41e2db58637c0d32b0b3594289420 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Tue, 17 Aug 2021 22:07:58 +0200 Subject: [PATCH] Remove keymap logging --- list-editor/keymap.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/list-editor/keymap.js b/list-editor/keymap.js index 3ea3187..b7affc3 100644 --- a/list-editor/keymap.js +++ b/list-editor/keymap.js @@ -19,13 +19,13 @@ function handleKeyDown(editor, event) { if (this.keys.hasOwnProperty(key)) { const action = this.keys[key] if (editor.hasOwnProperty(action)) { - console.log('Key down ' + key + ', calling action ' + action) + // console.log('Key down ' + key + ', calling action ' + action) return editor[action](event) } else { console.warn('Unknown action on editor: ' + action) } - } else { - console.log('Key down ' + key) + // } else { + // console.log('Key down ' + key) } return true @@ -34,8 +34,8 @@ function handleKeyDown(editor, event) { function mapKey(key, action) { if (this.keys.hasOwnProperty(key)) { console.warn(`Re-defining ${key} to call ${action}`) - } else { - console.log(`Defining ${key} to call ${action}`) + // } else { + // console.log(`Defining ${key} to call ${action}`) } this.keys[key] = action }