From f65ebfd598ad1e82e00fb255986de4766cbd7429 Mon Sep 17 00:00:00 2001 From: Stefan Date: Wed, 6 Mar 2019 15:52:49 +0100 Subject: Add ctrl+ for zoom in on Windows --- src/stores/AppStore.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 168aa7e48..0bd1518d5 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js @@ -176,6 +176,20 @@ export default class AppStore extends Store { }, ); + // We need to add an additional key listener for ctrl+ on windows. Otherwise only ctrl+shift+ would work + if (isWindows) { + key( + 'ctrl+=', () => { + debug('Windows: zoom in via ctrl+'); + const { webview } = this.stores.services.active; + webview.getZoomLevel((level) => { + // level 9 =~ +300% and setZoomLevel wouldnt zoom in further + if (level < 9) webview.setZoomLevel(level + 1); + }); + }, + ); + } + this.locale = this._getDefaultLocale(); this._healthCheck(); -- cgit v1.2.3-54-g00ecf