mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
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
This commit is contained in:
+9
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user