Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Tinebase): ctrl+enter might change data before closeing window
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweiss committed May 12, 2022
1 parent d8bbb2e commit 997d5dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tine20/Tinebase/js/widgets/dialog/EditDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ Tine.widgets.dialog.EditDialog = Ext.extend(Ext.FormPanel, {
// force set last selected field
this.getForm().items.each(function(item) {
if (item.hasFocus) {
item.setValue(item.getRawValue(), this.record);
item.onBlur();
}
}, this);
}
Expand Down
2 changes: 1 addition & 1 deletion tine20/Tinebase/js/widgets/form/PasswordTriggerField.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Tine.Tinebase.widgets.form.PasswordTriggerField = Ext.extend(Ext.form.TwinTrigge
if (e.type === 'keydown' && e.keyCode === 229) return _.defer(_.bind(this.transformIMEInput, this, e));
if (e.type === 'keydown' && _.indexOf([8 /* BACKSPACE */, 46 /* DELETE */], e.keyCode) < 0) return;
if (e.type === 'keypress' && e.metaKey /* APPLE CMD */ && e.keyCode == 118 /* v */) return;
if (e.type === 'keypress' && _.indexOf([13 /* ENTER */], e.keyCode) >= 0) return;
if (e.type === 'keypress' && _.indexOf([13, /* ENTER */ 10 /* CTRL+ENTER */], e.keyCode) >= 0) return;
Ext.lib.Event.stopEvent(e);

clearTimeout(this.selectTextTimeout);
Expand Down

0 comments on commit 997d5dc

Please sign in to comment.