mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
focus to editor textarea after enableKeyEvents(true, undefined)
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user