Fix Bug 45106

This commit is contained in:
Julia Radzhabova 2020-04-09 18:35:36 +03:00
parent 4ea5c2522e
commit 77a7f8a479
3 changed files with 17 additions and 0 deletions

View file

@ -285,6 +285,11 @@ define([
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
return false; 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()) { if (me.currentMenu && me.currentMenu.isVisible()) {

View file

@ -288,6 +288,11 @@ define([
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
return false; return false;
} else if (key === 48 || key === 96) {// 0
me.api.zoomFitToPage();
event.preventDefault();
event.stopPropagation();
return false;
} }
} }
if (me.currentMenu && me.currentMenu.isVisible()) { if (me.currentMenu && me.currentMenu.isVisible()) {

View file

@ -1499,6 +1499,13 @@ define([
this.api.asc_setZoom(factor); 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.preventDefault();
event.stopPropagation(); event.stopPropagation();
return false; return false;