Commit 703addfd authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 28085 - Горячие клавиши не отрабатывают для приложения глобально

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61715 954022d7-b5bf-4e40-9824-e11837661b57
parent 73f8f3ab
...@@ -4742,9 +4742,12 @@ function CThumbnailsManager() ...@@ -4742,9 +4742,12 @@ function CThumbnailsManager()
} }
} }
else else
{
if(drDoc.SlideCurrent > 0)
{ {
this.CorrectShiftSelect(true, true); this.CorrectShiftSelect(true, true);
} }
}
break; break;
} }
case 35: // end case 35: // end
...@@ -4760,9 +4763,12 @@ function CThumbnailsManager() ...@@ -4760,9 +4763,12 @@ function CThumbnailsManager()
} }
} }
else else
{
if(drDoc.SlideCurrent > 0)
{ {
this.CorrectShiftSelect(false, true); this.CorrectShiftSelect(false, true);
} }
}
break; break;
} }
case 65: // A case 65: // A
...@@ -5020,6 +5026,11 @@ function CThumbnailsManager() ...@@ -5020,6 +5026,11 @@ function CThumbnailsManager()
} }
break; break;
} }
case 122:
case 123:
{
return;
}
default: default:
......
...@@ -1835,6 +1835,8 @@ CPresentation.prototype = ...@@ -1835,6 +1835,8 @@ CPresentation.prototype =
} }
} }
else if ( e.KeyCode == 35 ) // клавиша End else if ( e.KeyCode == 35 ) // клавиша End
{
if(this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.getTargetDocContent())
{ {
if ( true === e.CtrlKey ) // Ctrl + End - переход в конец документа if ( true === e.CtrlKey ) // Ctrl + End - переход в конец документа
{ {
...@@ -1844,20 +1846,57 @@ CPresentation.prototype = ...@@ -1844,20 +1846,57 @@ CPresentation.prototype =
{ {
this.Cursor_MoveEndOfLine( true === e.ShiftKey ); this.Cursor_MoveEndOfLine( true === e.ShiftKey );
} }
}
else
{
if (!e.ShiftKey)
{
if (this.CurPage !== (this.Slides.length - 1))
{
editor.WordControl.GoToPage(this.Slides.length - 1);
}
}
else
{
if(this.Slides.length > 0)
{
editor.WordControl.Thumbnails.CorrectShiftSelect(false, true);
}
}
}
bRetValue = true; bRetValue = true;
} }
else if ( e.KeyCode == 36 ) // клавиша Home else if ( e.KeyCode == 36 ) // клавиша Home
{ {
if ( true === e.CtrlKey ) // Ctrl + Home - переход в начало документа if(this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.getTargetDocContent())
{
if (true === e.CtrlKey) // Ctrl + Home - переход в начало документа
{ {
this.Cursor_MoveToStartPos(); this.Cursor_MoveToStartPos();
} }
else // Переходим в начало строки else // Переходим в начало строки
{ {
this.Cursor_MoveStartOfLine( true === e.ShiftKey ); this.Cursor_MoveStartOfLine(true === e.ShiftKey);
}
}
else
{
if (!e.ShiftKey)
{
if (this.Slides.length > 0)
{
editor.WordControl.GoToPage(0);
}
}
else
{
if(this.Slides.length > 0)
{
editor.WordControl.Thumbnails.CorrectShiftSelect(true, true);
}
}
} }
bRetValue = true; bRetValue = true;
} }
else if ( e.KeyCode == 37 ) // Left Arrow else if ( e.KeyCode == 37 ) // Left Arrow
...@@ -2003,6 +2042,11 @@ CPresentation.prototype = ...@@ -2003,6 +2042,11 @@ CPresentation.prototype =
//не возвращаем true чтобы не было preventDefault //не возвращаем true чтобы не было preventDefault
} }
} }
else if ( e.KeyCode == 68 && false === editor.isViewMode && true === e.CtrlKey ) // Ctrl + E - переключение прилегания параграфа между center и left
{
editor.DublicateSlide();
bRetValue = true;
}
else if ( e.KeyCode == 69 && false === editor.isViewMode && true === e.CtrlKey ) // Ctrl + E - переключение прилегания параграфа между center и left else if ( e.KeyCode == 69 && false === editor.isViewMode && true === e.CtrlKey ) // Ctrl + E - переключение прилегания параграфа между center и left
{ {
if ( true !== e.AltKey ) // Ctrl + E - переключение прилегания параграфа между center и left if ( true !== e.AltKey ) // Ctrl + E - переключение прилегания параграфа между center и left
...@@ -2095,12 +2139,26 @@ CPresentation.prototype = ...@@ -2095,12 +2139,26 @@ CPresentation.prototype =
} }
} }
else if ( e.KeyCode == 77 && false === editor.isViewMode && true === e.CtrlKey ) // Ctrl + M + ... else if ( e.KeyCode == 77 && false === editor.isViewMode && true === e.CtrlKey ) // Ctrl + M + ...
{
if(this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.getTargetDocContent())
{ {
if ( true === e.ShiftKey ) // Ctrl + Shift + M - уменьшаем левый отступ if ( true === e.ShiftKey ) // Ctrl + Shift + M - уменьшаем левый отступ
editor.DecreaseIndent(); editor.DecreaseIndent();
else // Ctrl + M - увеличиваем левый отступ else // Ctrl + M - увеличиваем левый отступ
editor.IncreaseIndent(); editor.IncreaseIndent();
} }
else
{
var _selected_thumbnails = editor.WordControl.Thumbnails.GetSelectedArray();
if(_selected_thumbnails.length > 0)
{
var _last_selected_slide_num = _selected_thumbnails[_selected_thumbnails.length - 1];
editor.WordControl.GoToPage(_last_selected_slide_num);
editor.WordControl.m_oLogicDocument.addNextSlide();
}
}
bRetValue = true;
}
else if ( e.KeyCode == 80 && true === e.CtrlKey ) // Ctrl + P + ... else if ( e.KeyCode == 80 && true === e.CtrlKey ) // Ctrl + P + ...
{ {
if ( true === e.ShiftKey && false === editor.isViewMode ) // Ctrl + Shift + P - добавляем номер страницы в текущую позицию if ( true === e.ShiftKey && false === editor.isViewMode ) // Ctrl + Shift + P - добавляем номер страницы в текущую позицию
......
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