[SSE] Fix Bug 46126
This commit is contained in:
parent
e67ef8b98c
commit
043d1c231b
|
@ -1560,6 +1560,12 @@ define([
|
||||||
},
|
},
|
||||||
'command+shift+=,ctrl+shift+=': function(e) {
|
'command+shift+=,ctrl+shift+=': function(e) {
|
||||||
if (me.editMode && !me.toolbar.btnAddCell.isDisabled()) {
|
if (me.editMode && !me.toolbar.btnAddCell.isDisabled()) {
|
||||||
|
var cellinfo = me.api.asc_getCellInfo(),
|
||||||
|
selectionType = cellinfo.asc_getSelectionType();
|
||||||
|
if (selectionType === Asc.c_oAscSelectionType.RangeRow || selectionType === Asc.c_oAscSelectionType.RangeCol) {
|
||||||
|
me.api.asc_insertCells(selectionType === Asc.c_oAscSelectionType.RangeRow ? Asc.c_oAscInsertOptions.InsertRows :Asc.c_oAscInsertOptions.InsertColumns );
|
||||||
|
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||||
|
} else {
|
||||||
var items = me.toolbar.btnAddCell.menu.items,
|
var items = me.toolbar.btnAddCell.menu.items,
|
||||||
arr = [];
|
arr = [];
|
||||||
for (var i=0; i<4; i++)
|
for (var i=0; i<4; i++)
|
||||||
|
@ -1575,11 +1581,18 @@ define([
|
||||||
}
|
}
|
||||||
})).show();
|
})).show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
'command+shift+-,ctrl+shift+-': function(e) {
|
'command+shift+-,ctrl+shift+-': function(e) {
|
||||||
if (me.editMode && !me.toolbar.btnDeleteCell.isDisabled()) {
|
if (me.editMode && !me.toolbar.btnDeleteCell.isDisabled()) {
|
||||||
|
var cellinfo = me.api.asc_getCellInfo(),
|
||||||
|
selectionType = cellinfo.asc_getSelectionType();
|
||||||
|
if (selectionType === Asc.c_oAscSelectionType.RangeRow || selectionType === Asc.c_oAscSelectionType.RangeCol) {
|
||||||
|
me.api.asc_deleteCells(selectionType === Asc.c_oAscSelectionType.RangeRow ? Asc.c_oAscDeleteOptions.DeleteRows :Asc.c_oAscDeleteOptions.DeleteColumns );
|
||||||
|
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||||
|
} else {
|
||||||
var items = me.toolbar.btnDeleteCell.menu.items,
|
var items = me.toolbar.btnDeleteCell.menu.items,
|
||||||
arr = [];
|
arr = [];
|
||||||
for (var i=0; i<4; i++)
|
for (var i=0; i<4; i++)
|
||||||
|
@ -1595,6 +1608,7 @@ define([
|
||||||
}
|
}
|
||||||
})).show();
|
})).show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue