1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00
Elizabeth Schafer 2019-12-15 10:30:29 -05:00
parent 7ec15ff4c4
commit 34a1b2dc3e

View File

@ -1001,18 +1001,20 @@ class Application extends BaseApplication {
}, {
label: _('Zoom In'),
click: () => {
const currentZoomFactor = this.store().getState().windowContentZoomFactor;
this.store().dispatch({
type: 'WINDOW_CONTENT_ZOOM_FACTOR_SET',
zoomFactor: webFrame.getZoomFactor() + 0.1,
zoomFactor: currentZoomFactor + 0.1,
});
},
accelerator: 'CommandOrControl+=',
}, {
label: _('Zoom Out'),
click: () => {
const currentZoomFactor = this.store().getState().windowContentZoomFactor;
this.store().dispatch({
type: 'WINDOW_CONTENT_ZOOM_FACTOR_SET',
zoomFactor: webFrame.getZoomFactor() - 0.1,
zoomFactor: currentZoomFactor - 0.1,
});
},
accelerator: 'CommandOrControl+-',