Fix for rev. 1f31531816
([SSE] Open advanced settings, set units, ctrl+v to canvas -> text isn't entered to cell)
This commit is contained in:
parent
7aeeb4fe58
commit
cd2eabe427
|
@ -229,9 +229,11 @@ define([
|
|||
});
|
||||
|
||||
$(document.body).on('blur', 'input, textarea', function(e) {
|
||||
if (!me.isModalShowed && !me.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file').isVisible()) {
|
||||
if (!me.isModalShowed) {
|
||||
if (/form-control/.test(e.target.className))
|
||||
me.inFormControl = false;
|
||||
if (me.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file').isVisible())
|
||||
return;
|
||||
if (!e.relatedTarget ||
|
||||
!/area_id/.test(e.target.id)
|
||||
&& !(e.target.localName == 'input' && $(e.target).parent().find(e.relatedTarget).length>0) /* Check if focus in combobox goes from input to it's menu button or menu items, or from comment editing area to Ok/Cancel button */
|
||||
|
|
|
@ -207,9 +207,11 @@ define([
|
|||
});
|
||||
|
||||
$(document.body).on('blur', 'input, textarea', function(e) {
|
||||
if (!me.isModalShowed && !me.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file').isVisible()) {
|
||||
if (!me.isModalShowed) {
|
||||
if (/form-control/.test(e.target.className))
|
||||
me.inFormControl = false;
|
||||
if (me.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file').isVisible())
|
||||
return;
|
||||
if (!e.relatedTarget ||
|
||||
!/area_id/.test(e.target.id)
|
||||
&& !(e.target.localName == 'input' && $(e.target).parent().find(e.relatedTarget).length>0) /* Check if focus in combobox goes from input to it's menu button or menu items, or from comment editing area to Ok/Cancel button */
|
||||
|
|
|
@ -216,9 +216,11 @@ define([
|
|||
$(document.body).on('blur', 'input, textarea', function(e) {
|
||||
if (me.isAppDisabled === true || me.isFrameClosed) return;
|
||||
|
||||
if ((!me.isModalShowed || $('.asc-window.enable-key-events:visible').length>0) && !(me.loadMask && me.loadMask.isVisible()) && !me.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file').isVisible()) {
|
||||
if ((!me.isModalShowed || $('.asc-window.enable-key-events:visible').length>0) && !(me.loadMask && me.loadMask.isVisible())) {
|
||||
if (/form-control/.test(e.target.className))
|
||||
me.inFormControl = false;
|
||||
if (me.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file').isVisible())
|
||||
return;
|
||||
if (!e.relatedTarget ||
|
||||
!/area_id/.test(e.target.id)
|
||||
&& !(e.target.localName == 'input' && $(e.target).parent().find(e.relatedTarget).length>0) /* Check if focus in combobox goes from input to it's menu button or menu items, or from comment editing area to Ok/Cancel button */
|
||||
|
|
Loading…
Reference in a new issue