mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 17:57:56 +08:00
Merge pull request #2537 from ONLYOFFICE/fix/bugfix
Fix Bug 63775, refactoring
This commit is contained in:
@ -65,7 +65,9 @@ define([
|
||||
PAGEUP: 33,
|
||||
PAGEDOWN: 34,
|
||||
INSERT: 45,
|
||||
ZERO: 48,
|
||||
EQUALITY_FF:61,
|
||||
NUM_ZERO: 96,
|
||||
NUM_PLUS: 107,
|
||||
NUM_MINUS: 109,
|
||||
F1: 112,
|
||||
|
||||
@ -31,7 +31,8 @@
|
||||
';': 186, '\'': 222,
|
||||
'[': 219, ']': 221, '\\': 220,
|
||||
'ff-': 173, 'ff=': 61,
|
||||
numplus: 107, numminus: 109
|
||||
numplus: 107, numminus: 109,
|
||||
'0': 48
|
||||
},
|
||||
code = function(x){
|
||||
return _MAP[x] || x.toUpperCase().charCodeAt(0);
|
||||
|
||||
@ -707,7 +707,7 @@ define([
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
} else if (key === 48 || key === 96) {// 0
|
||||
} else if (key === Common.UI.Keys.ZERO || key === Common.UI.Keys.NUM_ZERO) {// 0
|
||||
me.api.zoom(100);
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
@ -718,7 +718,7 @@ define([
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
} else if (key === 48 || key === 96) {// 0
|
||||
} else if (key === Common.UI.Keys.ZERO || key === Common.UI.Keys.NUM_ZERO) {// 0
|
||||
me.api.zoomFitToPage();
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
@ -2390,7 +2390,7 @@ define([
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
}
|
||||
} else if (key === 48 || key === 96) {// 0
|
||||
} else if (key === Common.UI.Keys.ZERO || key === Common.UI.Keys.NUM_ZERO) {// 0
|
||||
if (!this.api.isCellEdited) {
|
||||
this.api.asc_setZoom(1);
|
||||
event.preventDefault();
|
||||
|
||||
@ -2100,7 +2100,9 @@ define([
|
||||
return false;
|
||||
}
|
||||
};
|
||||
shortcuts['command+shift+=,ctrl+shift+=,command+shift+numplus,ctrl+shift+numplus' + (Common.Utils.isGecko ? ',command+shift+ff=,ctrl+shift+ff=' : '')] = function(e) {
|
||||
shortcuts['command+shift+=,ctrl+shift+=,command+shift+numplus,ctrl+shift+numplus' + (Common.Utils.isGecko ? ',command+shift+ff=,ctrl+shift+ff=' : '') +
|
||||
(Common.Utils.isMac ? ',command+shift+0,ctrl+shift+0' : '')] = function(e) {
|
||||
if (Common.Utils.isMac && e.keyCode === Common.UI.Keys.ZERO && e.key!=='=') return false;
|
||||
if (me.editMode && !me.toolbar.mode.isEditMailMerge && !me.toolbar.mode.isEditDiagram && !me.toolbar.mode.isEditOle && !me.toolbar.btnAddCell.isDisabled()) {
|
||||
var cellinfo = me.api.asc_getCellInfo(),
|
||||
selectionType = cellinfo.asc_getSelectionType();
|
||||
|
||||
Reference in New Issue
Block a user