Commit e0ad38e9 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

копипаст под маком

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66823 954022d7-b5bf-4e40-9824-e11837661b57
parent 95a35237
......@@ -199,4 +199,6 @@ function InitDragAndDrop(oHtmlElement, callback) {
// меняем среду
AscBrowser.isSafari = false;
AscBrowser.isSafariMacOs = false;
window.USER_AGENT_SAFARI_MACOS = false;
\ No newline at end of file
window.USER_AGENT_SAFARI_MACOS = false;
window["AscDesktopEditorButtonMode"] = true;
\ No newline at end of file
......@@ -415,7 +415,6 @@ var editor;
spreadsheet_api.prototype.asc_Copy = function() {
if (window["AscDesktopEditor"]) {
window["AscDesktopEditorButtonMode"] = true;
var _e = {};
_e.ctrlKey = true;
......@@ -424,8 +423,6 @@ var editor;
this.controller._onWindowKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
......@@ -436,7 +433,6 @@ var editor;
spreadsheet_api.prototype.asc_Paste = function() {
if (window["AscDesktopEditor"]) {
window["AscDesktopEditorButtonMode"] = true;
var _e = {};
_e.ctrlKey = true;
......@@ -445,8 +441,6 @@ var editor;
this.controller._onWindowKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
......@@ -457,7 +451,6 @@ var editor;
spreadsheet_api.prototype.asc_Cut = function() {
if (window["AscDesktopEditor"]) {
window["AscDesktopEditorButtonMode"] = true;
var _e = {};
_e.ctrlKey = true;
......@@ -466,8 +459,6 @@ var editor;
this.controller._onWindowKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
......
......@@ -1036,16 +1036,12 @@ asc_docs_api.prototype.Copy = function()
{
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = new CKeyboardEvent();
_e.CtrlKey = true;
_e.KeyCode = 67;
this.WordControl.m_oLogicDocument.OnKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
return Editor_Copy_Button(this);
......@@ -1057,16 +1053,12 @@ asc_docs_api.prototype.Cut = function()
{
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = new CKeyboardEvent();
_e.CtrlKey = true;
_e.KeyCode = 88;
this.WordControl.m_oLogicDocument.OnKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
return Editor_Copy_Button(this, true);
......@@ -1075,16 +1067,12 @@ asc_docs_api.prototype.Paste = function()
{
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = new CKeyboardEvent();
_e.CtrlKey = true;
_e.KeyCode = 86;
this.WordControl.m_oLogicDocument.OnKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
if (false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props))
......
......@@ -1718,16 +1718,12 @@ asc_docs_api.prototype.Copy = function()
{
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = new CKeyboardEvent();
_e.CtrlKey = true;
_e.KeyCode = 67;
this.WordControl.m_oLogicDocument.OnKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
return Editor_Copy_Button(this);
......@@ -1739,16 +1735,12 @@ asc_docs_api.prototype.Cut = function()
{
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = new CKeyboardEvent();
_e.CtrlKey = true;
_e.KeyCode = 88;
this.WordControl.m_oLogicDocument.OnKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
return Editor_Copy_Button(this, true);
......@@ -1757,16 +1749,12 @@ asc_docs_api.prototype.Paste = function()
{
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = new CKeyboardEvent();
_e.CtrlKey = true;
_e.KeyCode = 86;
this.WordControl.m_oLogicDocument.OnKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
......
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