Commit 47e3380e 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@48644 954022d7-b5bf-4e40-9824-e11837661b57
parent 14b8271f
......@@ -319,6 +319,13 @@ function CEditorPage(api)
_text_bx_back.id = "id_text_box_background";
_text_bx_back.setAttribute("style", "background:transparent;border-style:none;border-color:transparent;overflow:hidden;z-index:4;font-family:arial;font-size:12pt;position:absolute;resize:none;padding:0px;margin:0px;font-weight:normal;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;");
_text_bx_back.setAttribute("spellcheck", "false");
if (bIsAndroid)
{
_text_bx_back.setAttribute("autocomplete", "off");
_text_bx_back.setAttribute("type", "password");
}
_text_bx_back.willValidate = false;
this.m_oMainView.HtmlElement.appendChild(_text_bx_back);
......@@ -648,6 +655,38 @@ function CEditorPage(api)
// пришла пустая. следом ждем "aa"
window.IS_USE_INPUT = false;
}
else
{
var _len = val.length;
for (var i = 1; i < _len; i++)
{
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 : val.charCodeAt(i)
};
_e.preventDefault = function()
{
};
if (_e.which == 32)
{
_e.keyCode = 32;
oThis.onKeyDown(_e);
}
else
{
oThis.onKeyPress(_e);
}
}
}
if (e.preventDefault)
e.preventDefault();
......
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