Skip to content

EspoCRM – Open Source CRM Application

Fix shortcut

Yuriid7facb05d7c4
diff --git a/client/src/views/main.ts b/client/src/views/main.ts
index ca46549153..b3c307ef1b 100644
--- a/client/src/views/main.ts
+++ b/client/src/views/main.ts
@@ -335,6 +335,8 @@ class MainView<S extends MainViewSchema = MainViewSchema> extends View<S> {
if (this.shortcutKeys) {
this.shortcutKeys = Utils.cloneDeep(this.shortcutKeys);
+ } else {
+ this.shortcutKeys = {};
}
this.addHandler('click', '.action', (event, target) => {