For Bug 48260

This commit is contained in:
Julia Radzhabova 2021-01-15 16:07:10 +03:00
parent 499a033585
commit 7ecb043d4d
2 changed files with 17 additions and 4 deletions

View file

@ -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()) {

View file

@ -548,9 +548,13 @@ define([
})
.on('changed:after', _.bind(function(combo, record) {
if (me._changedProps) {
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) {
if (me._changedProps) {
@ -593,9 +597,13 @@ define([
})
.on('changed:after', _.bind(function(combo, record) {
if (me._changedProps) {
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) {
if (me._changedProps) {