Commit a870a5e4 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@51115 954022d7-b5bf-4e40-9824-e11837661b57
parent 7592c3ee
......@@ -691,6 +691,7 @@ function CEditorPage(api)
var val = oThis.TextBoxBackground.HtmlElement.value;
oThis.TextBoxBackground.HtmlElement.value = "a";
/*
if (!window.IS_USE_INPUT && val == "aa")
{
if (e.preventDefault)
......@@ -701,6 +702,7 @@ function CEditorPage(api)
window.IS_USE_INPUT = true;
return;
}
*/
if (val.length == 2)
{
......@@ -733,7 +735,29 @@ function CEditorPage(api)
else if (0 == val.length)
{
// пришла пустая. следом ждем "aa"
window.IS_USE_INPUT = false;
//window.IS_USE_INPUT = false;
var _e = {
altKey : global_keyboardEvent.AltKey,
ctrlKey : global_keyboardEvent.CtrlKey,
shiftKey : global_keyboardEvent.ShiftKey,
srcElement : global_keyboardEvent.Sender,
charCode : global_keyboardEvent.CharCode,
keyCode : global_keyboardEvent.KeyCode,
which : 8
};
_e.preventDefault = function()
{
};
if (_e.which == 8)
{
_e.keyCode = 8;
oThis.onKeyDown(_e);
}
}
else
{
......
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