Commit 1ab508fb authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Fix Bug 22087 - [Shapes] Не переходит фокус с автофигуры в ячейку, при...

Fix Bug 22087 - [Shapes] Не переходит фокус с автофигуры в ячейку, при одновременном наборе текста в них

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53916 954022d7-b5bf-4e40-9824-e11837661b57
parent ec666db9
......@@ -599,8 +599,12 @@
var graphicObjects = t.handlers.trigger("getSelectedGraphicObjects");
if ( graphicObjects.length && t.enableKeyEvents ) {
if (t.handlers.trigger("graphicObjectWindowKeyDown", event))
return true;
t.handlers.trigger("graphicObjectWindowKeyDown", event);
if (t.isCellEditMode) {
t.handlers.trigger("stopCellEditing");
t.isCellEditMode = false;
}
return true;
}
// Двигаемся ли мы в выделенной области
......@@ -910,8 +914,13 @@
var graphicObjects = t.handlers.trigger("getSelectedGraphicObjects");
if ( graphicObjects.length && t.enableKeyEvents ) {
if (!( (event.ctrlKey || event.metaKey) && (event.which == 99 || event.which == 118) )) { // Mozilla Firefox Fix #20080
if (t.handlers.trigger("graphicObjectWindowKeyPress", event))
if (t.handlers.trigger("graphicObjectWindowKeyPress", event)) {
if (t.isCellEditMode) {
t.handlers.trigger("stopCellEditing");
t.isCellEditMode = false;
}
return true;
}
}
}
......
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