Commit 857a6092 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov
parent e2d589f3
...@@ -1702,6 +1702,9 @@ ...@@ -1702,6 +1702,9 @@
return false; return false;
case 35: // "end" case 35: // "end"
// Отключим стандартную обработку браузера нажатия end
event.stopPropagation();
event.preventDefault();
if (!t.hasFocus) {break;} if (!t.hasFocus) {break;}
if (hieroglyph) {t._syncEditors();} if (hieroglyph) {t._syncEditors();}
kind = ctrlKey ? kEndOfText : kEndOfLine; kind = ctrlKey ? kEndOfText : kEndOfLine;
...@@ -1709,6 +1712,9 @@ ...@@ -1709,6 +1712,9 @@
return false; return false;
case 36: // "home" case 36: // "home"
// Отключим стандартную обработку браузера нажатия home
event.stopPropagation();
event.preventDefault();
if (!t.hasFocus) {break;} if (!t.hasFocus) {break;}
if (hieroglyph) {t._syncEditors();} if (hieroglyph) {t._syncEditors();}
kind = ctrlKey ? kBeginOfText : kBeginOfLine; kind = ctrlKey ? kBeginOfText : kBeginOfLine;
......
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