Commit 2370bee1 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Сделана обработка добавления и продолжения селекта с помощью клавиш...

Сделана обработка добавления и продолжения селекта с помощью клавиш вверх/вниз. Сделана корректировка положение получения позиции курсора при перемещении его с помощью клавиш.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53787 954022d7-b5bf-4e40-9824-e11837661b57
parent 0cb65ac0
......@@ -8659,6 +8659,8 @@ CDocument.prototype =
}
else if ( e.KeyCode == 33 ) // PgUp
{
// TODO: Реализовать Ctrl + Shift + PgUp / Ctrl + PgUp / Shift + PgUp
if ( true === e.AltKey )
{
var MouseEvent = new CMouseEventHandler();
......@@ -8750,6 +8752,8 @@ CDocument.prototype =
}
else if ( e.KeyCode == 34 ) // PgDn
{
// TODO: Реализовать Ctrl + Shift + PgDn / Ctrl + PgDn / Shift + PgDn
if ( true === e.AltKey )
{
var MouseEvent = new CMouseEventHandler();
......@@ -8880,6 +8884,7 @@ CDocument.prototype =
}
else if ( e.KeyCode == 38 ) // Top Arrow
{
// TODO: Реализовать Ctrl + Up/ Ctrl + Shift + Up
// Чтобы при зажатой клавише курсор не пропадал
if ( true != e.ShiftKey )
this.DrawingDocument.TargetStart();
......@@ -8898,6 +8903,7 @@ CDocument.prototype =
}
else if ( e.KeyCode == 40 ) // Bottom Arrow
{
// TODO: Реализовать Ctrl + Down/ Ctrl + Shift + Down
// Чтобы при зажатой клавише курсор не пропадал
if ( true != e.ShiftKey )
this.DrawingDocument.TargetStart();
......
This diff is collapsed.
......@@ -2883,6 +2883,33 @@ ParaRun.prototype =
else
return false;
},
Get_StartPos : function(ContentPos, Depth)
{
ContentPos.Update( 0, Depth );
},
Get_EndPos : function(BehindEnd, ContentPos, Depth)
{
var ContentLen = this.Content.length;
if ( true === BehindEnd )
ContentPos.Update( ContentLen, Depth );
else
{
for ( var CurPos = 0; CurPos < ContentLen; CurPos++ )
{
if ( para_End === this.Content[CurPos].Type )
{
ContentPos.Update( CurPos, Depth );
return;
}
}
// Не нашли para_End
ContentPos.Update( ContentLen, Depth );
}
},
//-----------------------------------------------------------------------------------
// Функции для работы с селектом
//-----------------------------------------------------------------------------------
......
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