Commit b6e18207 authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete unused code

parent f70d8ad6
......@@ -2493,7 +2493,6 @@
event.preventDefault();
}
return false;
}
t.skipKeyPress = false;
......
......@@ -889,14 +889,11 @@
case 73: // make italic Ctrl + i
//case 83: // save Ctrl + s
case 85: // make underline Ctrl + u
//case 86: // paste Ctrl + v
//case 88: // cut Ctrl + x
case 89: // redo Ctrl + y
case 90: // undo Ctrl + z
if (isViewerMode || t.isSelectionDialogMode) {stop(); return result;}
case 65: // select all Ctrl + a
//case 67: // copy Ctrl + c
//if (t.handlers.trigger("getCellEditMode")) { return true; }
case 80: // print Ctrl + p
......@@ -904,8 +901,7 @@
if (!ctrlKey) { t.skipKeyPress = false; return true; }
if (67 !== event.which && 86 !== event.which && 88 !== event.which)
stop();
stop();
// Вызовем обработчик
if (!t.__handlers) {
......@@ -918,32 +914,6 @@
85: function () {t.handlers.trigger("setFontAttributes", "u");},
80: function () {t.handlers.trigger("print");},
//83: function () {t.handlers.trigger("save");},
//67: function () {t.handlers.trigger("copy");},
/*86: function () {
if (!window.GlobalPasteFlag)
{
if (!AscBrowser.isSafariMacOs)
{
window.GlobalPasteFlag = true;
t.handlers.trigger("paste");
}
else
{
if (0 === window.GlobalPasteFlagCounter)
{
AscCommonExcel.SafariIntervalFocus2();
window.GlobalPasteFlag = true;
t.handlers.trigger("paste");
}
}
}
else
{
if (!AscBrowser.isSafariMacOs)
stop();
}
},*/
//88: function () {t.handlers.trigger("cut");},
89: function () {t.handlers.trigger("redo");},
90: function () {t.handlers.trigger("undo");}
};
......
......@@ -375,12 +375,6 @@
self.cellEditor.setFocus(false);
self.getWorksheet().enterCellRange(self.cellEditor);
self.lockDraw = false;
}, "copy": function () {
self.copyToClipboard.apply(self, arguments);
}, "paste": function () {
self.pasteFromClipboard.apply(self, arguments);
}, "cut": function () {
self.cutToClipboard.apply(self, arguments);
}, "undo": function () {
self.undo.apply(self, arguments);
}, "redo": function () {
......@@ -532,10 +526,6 @@
self._onUpdateCellEditor.apply(self, arguments);
}, "gotFocus": function (hasFocus) {
self.controller.setFocus(!hasFocus);
}, "paste": function () {
self.pasteFromClipboard.apply(self, arguments);
}, "cut": function () {
self.cutToClipboard.apply(self, arguments);
}, "updateFormulaEditMod": function () {
self.controller.setFormulaEditMode.apply(self.controller, arguments);
var ws = self.getWorksheet();
......@@ -1969,13 +1959,13 @@
};
WorkbookView.prototype.checkCopyToClipboard = function(_clipboard, _formats) {
var t = this, ws, v;
var t = this, ws;
ws = t.getWorksheet();
t.clipboard.checkCopyToClipboard(ws, _clipboard, _formats);
};
WorkbookView.prototype.pasteData = function(_format, data1, data2) {
var t = this, ws, v;
var t = this, ws;
ws = t.getWorksheet();
t.clipboard.pasteData(ws, _format, data1, data2);
};
......
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