shortcuts original event
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user