Commit 086650d0 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

режим иероглифов: текствокс виден только при моргающем курсоре

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53850 954022d7-b5bf-4e40-9824-e11837661b57
parent d71c9bcb
......@@ -1821,6 +1821,8 @@ function CDrawingDocument()
clearInterval( this.m_lTimerTargetId );
this.m_lTimerTargetId = -1;
this.TargetHtmlElement.style.display = "none";
this.m_oWordControl.DisableTextEATextboxAttack();
}
this.UpdateTargetNoAttack = function()
{
......
......@@ -1766,6 +1766,24 @@ function CEditorPage(api)
}
}
this.DisableTextEATextboxAttack = function()
{
var oWordControl = oThis;
if (false === oWordControl.m_oApi.bInit_word_control)
return;
if (oWordControl.TextBoxInputFocus)
{
oWordControl.TextBoxInputFocus = false;
CollaborativeEditing.m_bGlobalLock = false;
this.TextBoxInput.style.zIndex = -1;
this.TextBoxInput.style.top = "-1000px";
this.TextBoxInputFocus = false;
this.ReinitTB();
}
}
this.onKeyPress = function(e)
{
if (oThis.Thumbnails.FocusObjType == FOCUS_OBJECT_THUMBNAILS)
......
......@@ -2669,6 +2669,8 @@ function CDrawingDocument()
this.m_lTimerTargetId = -1;
}
this.TargetHtmlElement.style.display = "none";
this.m_oWordControl.DisableTextEATextboxAttack();
}
this.UpdateTargetNoAttack = function()
{
......
......@@ -2264,6 +2264,24 @@ function CEditorPage(api)
oWordControl.bIsUseKeyPress = false;
}
this.DisableTextEATextboxAttack = function()
{
var oWordControl = oThis;
if (false === oWordControl.m_oApi.bInit_word_control)
return;
if (oWordControl.TextBoxInputFocus)
{
oWordControl.TextBoxInputFocus = false;
CollaborativeEditing.m_bGlobalLock = false;
this.TextBoxInput.style.zIndex = -1;
this.TextBoxInput.style.top = "-1000px";
this.TextBoxInputFocus = false;
this.ReinitTB();
}
}
this.onKeyUp = function(e)
{
global_keyboardEvent.AltKey = false;
......
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