focus to editor textarea after enableKeyEvents(true, undefined)

This commit is contained in:
Oleg Korshul
2016-07-07 18:13:40 +03:00
parent b9268e0736
commit 2a935189ba
4 changed files with 12 additions and 3 deletions

View File

@ -1974,7 +1974,7 @@ var editor;
this.IsFocus = isEnabled;
if (isFromInput !== true && AscCommon.g_inputContext)
AscCommon.g_inputContext.InterfaceEnableKeyEvents = isEnabled;
AscCommon.g_inputContext.setInterfaceEnableKeyEvents(isEnabled);
};
spreadsheet_api.prototype.asc_IsFocus = function(bIsNaturalFocus) {

View File

@ -531,6 +531,15 @@
}
}
}
},
setInterfaceEnableKeyEvents : function(value)
{
this.InterfaceEnableKeyEvents = value;
if (true == this.InterfaceEnableKeyEvents)
{
this.HtmlArea.focus();
}
}
};

View File

@ -4253,7 +4253,7 @@ background-repeat: no-repeat;\
}
if (isFromInput !== true && AscCommon.g_inputContext)
AscCommon.g_inputContext.InterfaceEnableKeyEvents = value;
AscCommon.g_inputContext.setInterfaceEnableKeyEvents(value);
};

View File

@ -6275,7 +6275,7 @@ background-repeat: no-repeat;\
}
if (isFromInput !== true && AscCommon.g_inputContext)
AscCommon.g_inputContext.InterfaceEnableKeyEvents = value;
AscCommon.g_inputContext.setInterfaceEnableKeyEvents(value);
};
asc_docs_api.prototype.asc_IsFocus = function(bIsNaturalFocus)
{