[SSE] Fix Bug 44393

This commit is contained in:
Julia Radzhabova 2020-02-05 15:31:45 +03:00 committed by Alexey Golubev
parent 65577df595
commit 51128892c8

View file

@ -1506,8 +1506,12 @@ define([
}, },
'command+k,ctrl+k': function (e) { 'command+k,ctrl+k': function (e) {
if (me.editMode && !me.toolbar.mode.isEditMailMerge && !me.toolbar.mode.isEditDiagram && !me.api.isCellEdited && !me._state.multiselect && !me._state.inpivot && if (me.editMode && !me.toolbar.mode.isEditMailMerge && !me.toolbar.mode.isEditDiagram && !me.api.isCellEdited && !me._state.multiselect && !me._state.inpivot &&
!me.getApplication().getController('LeftMenu').leftMenu.menuFile.isVisible()) !me.getApplication().getController('LeftMenu').leftMenu.menuFile.isVisible()) {
me.onHyperlink(); var cellinfo = me.api.asc_getCellInfo(),
selectionType = cellinfo.asc_getFlags().asc_getSelectionType();
if (selectionType !== Asc.c_oAscSelectionType.RangeShapeText || me.api.asc_canAddShapeHyperlink()!==false)
me.onHyperlink();
}
e.preventDefault(); e.preventDefault();
}, },
'command+1,ctrl+1': function(e) { 'command+1,ctrl+1': function(e) {