Skip to content

EspoCRM – Open Source CRM Application

edit item shortcut

Yuri Kuznetsove88b8356d83a
diff --git a/client/src/views/fields/array.js b/client/src/views/fields/array.js
index f680817be4..b7e666649a 100644
--- a/client/src/views/fields/array.js
+++ b/client/src/views/fields/array.js
@@ -1104,7 +1104,11 @@ class EditItemModalView extends ModalView {
label: 'Cancel',
onClick: () => this.actionCancel(),
},
- ]
+ ];
+
+ this.shortcutKeys = {
+ 'Control+Enter': () => this.actionApply(),
+ };
this.headerText = this.translate('Edit Item');
@@ -1142,7 +1146,9 @@ class EditItemModalView extends ModalView {
* @private
*/
actionApply() {
- if (this.recordView.validate()) {
+ const data = this.recordView.processFetch();
+
+ if (!data) {
return;
}