From b08aaa03fbf7a4b804e9124b2a3515cc9f57246f Mon Sep 17 00:00:00 2001 From: Cole Lashley Date: Tue, 23 Apr 2024 12:30:03 -0700 Subject: [PATCH] Remove log for duplicate key register (#540) * removed log for duplicate keybindings * changed dumplogs to GlobalModel.isDev, and re added back log * added back dumplogs * one last dump logs --- src/util/keyutil.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/util/keyutil.ts b/src/util/keyutil.ts index 15cc0811f..215dee51c 100644 --- a/src/util/keyutil.ts +++ b/src/util/keyutil.ts @@ -420,7 +420,15 @@ class KeybindManager { for (let index = 0; index < keybindsArray.length; index++) { let curKeybind = keybindsArray[index]; if (curKeybind.domain == domain && keybindingIsEqual(curKeybind.keybinding, keybinding)) { - console.log("keybinding is equal: ", curKeybind.keybinding, keybinding, curKeybind.domain, domain); + if (this.globalModel.isDev) { + console.log( + "keybinding already added", + curKeybind.keybinding, + keybinding, + curKeybind.domain, + domain + ); + } return true; } }