Commit 6b9771e8 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 33001

parent d2948bc9
...@@ -4724,6 +4724,7 @@ function CThumbnailsManager() ...@@ -4724,6 +4724,7 @@ function CThumbnailsManager()
if (this.m_oWordControl.m_oLogicDocument.viewMode === false) if (this.m_oWordControl.m_oLogicDocument.viewMode === false)
{ {
editor.DublicateSlide(); editor.DublicateSlide();
e.preventDefault();
return false; return false;
} }
} }
......
...@@ -2652,10 +2652,15 @@ CPresentation.prototype = ...@@ -2652,10 +2652,15 @@ CPresentation.prototype =
else if ( e.KeyCode == 68 && false === editor.isViewMode && true === e.CtrlKey ) else if ( e.KeyCode == 68 && false === editor.isViewMode && true === e.CtrlKey )
{ {
if(this.Slides[this.CurPage]){ if(this.Slides[this.CurPage]){
if(this.Slides[this.CurPage].graphicObjects.selectedObjects.length > 0){
this.Create_NewHistoryPoint(AscDFH.historydescription_Document_SetParagraphAlignHotKey); this.Create_NewHistoryPoint(AscDFH.historydescription_Document_SetParagraphAlignHotKey);
this.Slides[this.CurPage].copySelectedObjects(); this.Slides[this.CurPage].copySelectedObjects();
this.Recalculate(); this.Recalculate();
this.Document_UpdateInterfaceState(); this.Document_UpdateInterfaceState();
}
else{
this.DublicateSlide();
}
} }
bRetValue = keydownresult_PreventAll; bRetValue = keydownresult_PreventAll;
} }
......
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