From e1f7b64fe19ef41a8e4c8652b0bf89d6e079764c Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 6 Jul 2023 15:26:24 +0300 Subject: [PATCH] shortcuts original event --- client/modules/crm/src/views/calendar/calendar-page.js | 2 +- client/src/views/main.js | 2 +- client/src/views/modal.js | 2 +- client/src/views/record/detail.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/modules/crm/src/views/calendar/calendar-page.js b/client/modules/crm/src/views/calendar/calendar-page.js index db16f074f2..e5c17ea65b 100644 --- a/client/modules/crm/src/views/calendar/calendar-page.js +++ b/client/modules/crm/src/views/calendar/calendar-page.js @@ -163,7 +163,7 @@ class CalendarPage extends View { let key = Espo.Utils.getKeyFromKeyEvent(e); if (typeof this.shortcutKeys[key] === 'function') { - this.shortcutKeys[key].call(this, e); + this.shortcutKeys[key].call(this, e.originalEvent); } } diff --git a/client/src/views/main.js b/client/src/views/main.js index 9a71da657a..00ebd5eeb0 100644 --- a/client/src/views/main.js +++ b/client/src/views/main.js @@ -193,7 +193,7 @@ class MainView extends View { let key = Espo.Utils.getKeyFromKeyEvent(e); if (typeof this.shortcutKeys[key] === 'function') { - this.shortcutKeys[key].call(this, e); + this.shortcutKeys[key].call(this, e.originalEvent); return; } diff --git a/client/src/views/modal.js b/client/src/views/modal.js index eb34e8a37f..478ba23fda 100644 --- a/client/src/views/modal.js +++ b/client/src/views/modal.js @@ -382,7 +382,7 @@ class ModalView extends View { let key = Espo.Utils.getKeyFromKeyEvent(e); if (typeof this.shortcutKeys[key] === 'function') { - this.shortcutKeys[key].call(this, e); + this.shortcutKeys[key].call(this, e.originalEvent); return; } diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.js index fb8d03f1ff..25181e1323 100644 --- a/client/src/views/record/detail.js +++ b/client/src/views/record/detail.js @@ -2180,7 +2180,7 @@ class DetailRecordView extends BaseRecordView { let key = Espo.Utils.getKeyFromKeyEvent(e); if (typeof this.shortcutKeys[key] === 'function') { - this.shortcutKeys[key].call(this, e); + this.shortcutKeys[key].call(this, e.originalEvent); return; }