Fix Bug 46765
This commit is contained in:
parent
65d4be70c9
commit
87aebe4a62
|
@ -807,7 +807,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onBtnClick: function(event) {
|
onBtnClick: function(event) {
|
||||||
this._handleInput(event.currentTarget.attributes['result'].value);
|
this._handleInput(event.currentTarget.attributes['result'].value, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
onPrimary: function(event) {
|
onPrimary: function(event) {
|
||||||
|
@ -815,7 +815,11 @@ define([
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
_handleInput: function(state) {
|
_handleInput: function(state, fromButton) {
|
||||||
|
if(!fromButton && document.activeElement && document.activeElement.localName == 'textarea' && /area_id/.test(document.activeElement.id)){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var special = this.btnSpecial.isActive();
|
var special = this.btnSpecial.isActive();
|
||||||
var settings = special ? this.getSpecialSymbol() : this.getPasteSymbol(this.$window.find('.cell-selected').attr('id'));
|
var settings = special ? this.getSpecialSymbol() : this.getPasteSymbol(this.$window.find('.cell-selected').attr('id'));
|
||||||
if (this.options.handler) {
|
if (this.options.handler) {
|
||||||
|
|
Loading…
Reference in a new issue