diff --git a/apps/common/main/lib/component/ComboBox.js b/apps/common/main/lib/component/ComboBox.js index 14a0a185a..edfc2daaa 100644 --- a/apps/common/main/lib/component/ComboBox.js +++ b/apps/common/main/lib/component/ComboBox.js @@ -368,6 +368,11 @@ define([ else this._input.blur(); } + if (!this.isMenuOpen()) { + if ((this.getRawValue() === this.lastValue)) + return true; + this.setRawValue(this._input.val()); + } return false; } else if (e.keyCode == Common.UI.Keys.ESC && this.isMenuOpen()) { diff --git a/apps/documenteditor/main/app/view/DropcapSettingsAdvanced.js b/apps/documenteditor/main/app/view/DropcapSettingsAdvanced.js index b11b9e374..6670875e4 100644 --- a/apps/documenteditor/main/app/view/DropcapSettingsAdvanced.js +++ b/apps/documenteditor/main/app/view/DropcapSettingsAdvanced.js @@ -548,8 +548,12 @@ define([ }) .on('changed:after', _.bind(function(combo, record) { if (me._changedProps) { - me._changedProps.put_XAlign(undefined); - me._changedProps.put_X(Common.Utils.Metric.fnRecalcToMM(Common.Utils.String.parseFloat(record.value))); + if (combo.getSelectedRecord()) { + me._changedProps.put_XAlign(record.value); + } else { + me._changedProps.put_XAlign(undefined); + me._changedProps.put_X(Common.Utils.Metric.fnRecalcToMM(Common.Utils.String.parseFloat(record.value))); + } } }, me)) .on('selected', _.bind(function(combo, record) { @@ -593,8 +597,12 @@ define([ }) .on('changed:after', _.bind(function(combo, record) { if (me._changedProps) { - me._changedProps.put_YAlign(undefined); - me._changedProps.put_Y(Common.Utils.Metric.fnRecalcToMM(Common.Utils.String.parseFloat(record.value))); + if (combo.getSelectedRecord()) { + me._changedProps.put_YAlign(record.value); + } else { + me._changedProps.put_YAlign(undefined); + me._changedProps.put_Y(Common.Utils.Metric.fnRecalcToMM(Common.Utils.String.parseFloat(record.value))); + } } }, me)) .on('selected', _.bind(function(combo, record) {