Commit 14a722a3 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил баг http://bugzserver/show_bug.cgi?id=24471

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56436 954022d7-b5bf-4e40-9824-e11837661b57
parent 1d6fc137
...@@ -1638,6 +1638,8 @@ ...@@ -1638,6 +1638,8 @@
return true; return true;
case 37: // "left" case 37: // "left"
event.stopPropagation();
event.preventDefault();
if (!t.hasFocus) {break;} if (!t.hasFocus) {break;}
if (hieroglyph) {t._syncEditors();} if (hieroglyph) {t._syncEditors();}
kind = ctrlKey ? kPrevWord : kPrevChar; kind = ctrlKey ? kPrevWord : kPrevChar;
...@@ -1645,6 +1647,8 @@ ...@@ -1645,6 +1647,8 @@
return false; return false;
case 39: // "right" case 39: // "right"
event.stopPropagation();
event.preventDefault();
if (!t.hasFocus) {break;} if (!t.hasFocus) {break;}
if (hieroglyph) {t._syncEditors();} if (hieroglyph) {t._syncEditors();}
kind = ctrlKey ? kNextWord : kNextChar; kind = ctrlKey ? kNextWord : kNextChar;
...@@ -1652,12 +1656,16 @@ ...@@ -1652,12 +1656,16 @@
return false; return false;
case 38: // "up" case 38: // "up"
event.stopPropagation();
event.preventDefault();
if (!t.hasFocus) {break;} if (!t.hasFocus) {break;}
if (hieroglyph) {t._syncEditors();} if (hieroglyph) {t._syncEditors();}
event.shiftKey ? t._selectChars(kPrevLine) : t._moveCursor(kPrevLine); event.shiftKey ? t._selectChars(kPrevLine) : t._moveCursor(kPrevLine);
return false; return false;
case 40: // "down" case 40: // "down"
event.stopPropagation();
event.preventDefault();
if (!t.hasFocus) {break;} if (!t.hasFocus) {break;}
if (hieroglyph) {t._syncEditors();} if (hieroglyph) {t._syncEditors();}
event.shiftKey ? t._selectChars(kNextLine) : t._moveCursor(kNextLine); event.shiftKey ? t._selectChars(kNextLine) : t._moveCursor(kNextLine);
......
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