Commit 4afdab8a authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Запрет ввода текста, если зажата мышь

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54166 954022d7-b5bf-4e40-9824-e11837661b57
parent 22de2b09
...@@ -607,7 +607,7 @@ ...@@ -607,7 +607,7 @@
} }
var graphicObjects = t.handlers.trigger("getSelectedGraphicObjects"); var graphicObjects = t.handlers.trigger("getSelectedGraphicObjects");
if ( graphicObjects.length && t.enableKeyEvents ) { if ( !t.isLocked && graphicObjects.length && t.enableKeyEvents ) {
var result = t.handlers.trigger("graphicObjectWindowKeyDown", event); var result = t.handlers.trigger("graphicObjectWindowKeyDown", event);
if (t.isCellEditMode) { if (t.isCellEditMode) {
t.handlers.trigger("stopCellEditing"); t.handlers.trigger("stopCellEditing");
...@@ -922,7 +922,7 @@ ...@@ -922,7 +922,7 @@
if (t.settings.isViewerMode || t.isSelectionDialogMode) {return true;} if (t.settings.isViewerMode || t.isSelectionDialogMode) {return true;}
var graphicObjects = t.handlers.trigger("getSelectedGraphicObjects"); var graphicObjects = t.handlers.trigger("getSelectedGraphicObjects");
if ( graphicObjects.length && t.enableKeyEvents ) { if ( !t.isLocked && graphicObjects.length && t.enableKeyEvents ) {
if (!( (event.ctrlKey || event.metaKey) && (event.which == 99 || event.which == 118 || event.which == 120) )) { // Mozilla Firefox Fix #20080 (Ctrl+C, Ctrl+V, Ctrl+X) if (!( (event.ctrlKey || event.metaKey) && (event.which == 99 || event.which == 118 || event.which == 120) )) { // Mozilla Firefox Fix #20080 (Ctrl+C, Ctrl+V, Ctrl+X)
if (t.handlers.trigger("graphicObjectWindowKeyPress", event)) { if (t.handlers.trigger("graphicObjectWindowKeyPress", event)) {
if (t.isCellEditMode) { if (t.isCellEditMode) {
......
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