[CORD-1653] Adding a debug tab in model details
Change-Id: I6c3be4227309cbeb2dd7ab6252c1312dfd00fb18
diff --git a/src/app/core/services/keyboard-shortcut.ts b/src/app/core/services/keyboard-shortcut.ts
index 72a59a5..b8678f7 100644
--- a/src/app/core/services/keyboard-shortcut.ts
+++ b/src/app/core/services/keyboard-shortcut.ts
@@ -102,7 +102,6 @@
$('body').on('keydown', (e) => {
const pressedKey = this.whatKey(e.which);
-
if (!pressedKey) {
return;
}
@@ -141,7 +140,7 @@
}
binding.key = binding.key.toLowerCase();
- if (_.find(this.keyMapping.global, {key: binding.key}) || _.find(this.keyMapping.view, {key: binding.key})) {
+ if (_.find(this.keyMapping.global, {key: binding.key, modifiers: binding.modifiers}) || _.find(this.keyMapping.view, {key: binding.key, modifiers: binding.modifiers})) {
this.$log.warn(`[XosKeyboardShortcut] A shortcut for key "${binding.key}" has already been registered`);
return;
}