Fix Bug 45106
This commit is contained in:
parent
4ea5c2522e
commit
77a7f8a479
|
@ -285,6 +285,11 @@ define([
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
} else if (key === 48 || key === 96) {// 0
|
||||
me.api.zoom(100);
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (me.currentMenu && me.currentMenu.isVisible()) {
|
||||
|
|
|
@ -288,6 +288,11 @@ define([
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
} else if (key === 48 || key === 96) {// 0
|
||||
me.api.zoomFitToPage();
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (me.currentMenu && me.currentMenu.isVisible()) {
|
||||
|
|
|
@ -1499,6 +1499,13 @@ define([
|
|||
this.api.asc_setZoom(factor);
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
}
|
||||
} else if (key === 48 || key === 96) {// 0
|
||||
if (!this.api.isCellEdited) {
|
||||
this.api.asc_setZoom(1);
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue