diff --git a/apps/common/main/lib/view/SymbolTableDialog.js b/apps/common/main/lib/view/SymbolTableDialog.js index a1755132e..db9a900fc 100644 --- a/apps/common/main/lib/view/SymbolTableDialog.js +++ b/apps/common/main/lib/view/SymbolTableDialog.js @@ -807,7 +807,7 @@ define([ }, onBtnClick: function(event) { - this._handleInput(event.currentTarget.attributes['result'].value); + this._handleInput(event.currentTarget.attributes['result'].value, true); }, onPrimary: function(event) { @@ -815,7 +815,11 @@ define([ 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 settings = special ? this.getSpecialSymbol() : this.getPasteSymbol(this.$window.find('.cell-selected').attr('id')); if (this.options.handler) {