shortcuts original event

This commit is contained in:
Yuri Kuznetsov
2023-07-06 15:26:24 +03:00
parent 074d949d0b
commit e1f7b64fe1
4 changed files with 4 additions and 4 deletions
@@ -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);
}
}
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;
}