Commit 2a935189 authored by Oleg Korshul's avatar Oleg Korshul

focus to editor textarea after enableKeyEvents(true, undefined)

parent b9268e07
......@@ -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) {
......
......@@ -531,6 +531,15 @@
}
}
}
},
setInterfaceEnableKeyEvents : function(value)
{
this.InterfaceEnableKeyEvents = value;
if (true == this.InterfaceEnableKeyEvents)
{
this.HtmlArea.focus();
}
}
};
......
......@@ -4253,7 +4253,7 @@ background-repeat: no-repeat;\
}
if (isFromInput !== true && AscCommon.g_inputContext)
AscCommon.g_inputContext.InterfaceEnableKeyEvents = value;
AscCommon.g_inputContext.setInterfaceEnableKeyEvents(value);
};
......
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment