Commit 5b58fb2e authored by Ilya Kirillov's avatar Ilya Kirillov

Убрал тестовые функции для сносок.

parent f59f48ee
...@@ -1497,7 +1497,7 @@ CDocument.prototype.On_EndLoad = function() ...@@ -1497,7 +1497,7 @@ CDocument.prototype.On_EndLoad = function()
this.Set_FastCollaborativeEditing(true); this.Set_FastCollaborativeEditing(true);
} }
this.Footnotes.Init(); //this.Footnotes.Init();
}; };
CDocument.prototype.Add_TestDocument = function() CDocument.prototype.Add_TestDocument = function()
{ {
...@@ -7402,37 +7402,37 @@ CDocument.prototype.OnKeyDown = function(e) ...@@ -7402,37 +7402,37 @@ CDocument.prototype.OnKeyDown = function(e)
bRetValue = keydownresult_PreventAll; bRetValue = keydownresult_PreventAll;
} }
// --> TEST // --> TEST
else if (113 === e.KeyCode) // else if (113 === e.KeyCode)
{ // {
this.History.Create_NewPoint(); // this.History.Create_NewPoint();
var oFootnote = this.Footnotes.Create_Footnote(); // var oFootnote = this.Footnotes.Create_Footnote();
//
oFootnote.Paragraph_Add(new ParaFootnoteRef(oFootnote)); // oFootnote.Paragraph_Add(new ParaFootnoteRef(oFootnote));
oFootnote.Paragraph_Add(new ParaSpace()); // oFootnote.Paragraph_Add(new ParaSpace());
oFootnote.Paragraph_Add(new ParaText("F")); // oFootnote.Paragraph_Add(new ParaText("F"));
oFootnote.Paragraph_Add(new ParaText("o")); // oFootnote.Paragraph_Add(new ParaText("o"));
oFootnote.Paragraph_Add(new ParaText("o")); // oFootnote.Paragraph_Add(new ParaText("o"));
oFootnote.Paragraph_Add(new ParaText("t")); // oFootnote.Paragraph_Add(new ParaText("t"));
oFootnote.Paragraph_Add(new ParaText("n")); // oFootnote.Paragraph_Add(new ParaText("n"));
oFootnote.Paragraph_Add(new ParaText("o")); // oFootnote.Paragraph_Add(new ParaText("o"));
oFootnote.Paragraph_Add(new ParaText("t")); // oFootnote.Paragraph_Add(new ParaText("t"));
oFootnote.Paragraph_Add(new ParaText("e")); // oFootnote.Paragraph_Add(new ParaText("e"));
//
this.Paragraph_Add(new ParaFootnoteReference(oFootnote)); // this.Paragraph_Add(new ParaFootnoteReference(oFootnote));
bRetValue = keydownresult_PreventAll; // bRetValue = keydownresult_PreventAll;
} // }
else if (114 === e.KeyCode) // else if (114 === e.KeyCode)
{ // {
this.History.Create_NewPoint(); // this.History.Create_NewPoint();
this.Paragraph_Add(new ParaSeparator()); // this.Paragraph_Add(new ParaSeparator());
bRetValue = keydownresult_PreventAll; // bRetValue = keydownresult_PreventAll;
} // }
else if (115 === e.KeyCode) // else if (115 === e.KeyCode)
{ // {
this.History.Create_NewPoint(); // this.History.Create_NewPoint();
this.Paragraph_Add(new ParaContinuationSeparator()); // this.Paragraph_Add(new ParaContinuationSeparator());
bRetValue = keydownresult_PreventAll; // bRetValue = keydownresult_PreventAll;
} // }
// TEST <-- // TEST <--
else if (e.KeyCode == 121 && true === e.ShiftKey) // Shift + F10 - контекстное меню else if (e.KeyCode == 121 && true === e.ShiftKey) // Shift + F10 - контекстное меню
{ {
......
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