Commit f58a36a7 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Не присылаем asc_onEditCell (End), если редактор ячейки не был открыт

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49675 954022d7-b5bf-4e40-9824-e11837661b57
parent bef1811d
...@@ -839,10 +839,13 @@ ...@@ -839,10 +839,13 @@
this.controller.setCellEditMode(false); this.controller.setCellEditMode(false);
this.controller.setStrictClose(false); this.controller.setStrictClose(false);
this.controller.setFormulaEditMode(false); this.controller.setFormulaEditMode(false);
this.getWorksheet().setCellEditMode(false); var ws = this.getWorksheet();
this.getWorksheet().setFormulaEditMode(false); var isCellEditMode = ws.getCellEditMode();
this.getWorksheet().updateSelection(); ws.setCellEditMode(false);
ws.setFormulaEditMode(false);
ws.updateSelection();
this.Api.lastFocused = null; this.Api.lastFocused = null;
if (isCellEditMode)
this.handlers.trigger("asc_onEditCell", c_oAscCellEditorState.editEnd); this.handlers.trigger("asc_onEditCell", c_oAscCellEditorState.editEnd);
// Обновляем состояние Undo/Redo // Обновляем состояние Undo/Redo
History._sendCanUndoRedo(); History._sendCanUndoRedo();
......
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