[MM-44931] Allow zoom in/out when Shift is pressed (#2178)

* Add hidden menuitems for zoomIn zoomOut with shift

* Add e2e tests for zoom in/out with shift

* Fix e2e tests

* Add missing async

* Fix lint errors

* Put tests inside describes

* Fix lint errors

* Update e2e/specs/menu_bar/view_menu.test.js

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>

* Update e2e/specs/menu_bar/view_menu.test.js

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
This commit is contained in:
Tasos Boulis
2022-06-30 21:14:47 +03:00
committed by GitHub
parent e674c5c28e
commit aa21179f8f
2 changed files with 95 additions and 27 deletions

View File

@@ -131,9 +131,17 @@ export function createTemplate(config: Config, updateManager: UpdateManager) {
}, {
role: 'zoomIn',
accelerator: 'CmdOrCtrl+=',
}, {
role: 'zoomIn',
visible: false,
accelerator: 'CmdOrCtrl+Shift+=',
}, {
role: 'zoomOut',
accelerator: 'CmdOrCtrl+-',
}, {
role: 'zoomOut',
visible: false,
accelerator: 'CmdOrCtrl+Shift+-',
}, separatorItem, {
label: 'Developer Tools for Application Wrapper',
accelerator: (() => {