diff options
author | 2019-03-07 15:55:03 +0100 | |
---|---|---|
committer | 2019-03-07 15:55:03 +0100 | |
commit | 89fb1a6bffbff24aa5cf85640a06f95e31d08db8 (patch) | |
tree | 938cd69c9898104e52ab72851fec9b10e4157995 /src/stores | |
parent | feat(Linux): Add auto updater for Linux AppImage builds (diff) | |
parent | Add ctrl+ for zoom in on Windows (diff) | |
download | ferdium-app-89fb1a6bffbff24aa5cf85640a06f95e31d08db8.tar.gz ferdium-app-89fb1a6bffbff24aa5cf85640a06f95e31d08db8.tar.zst ferdium-app-89fb1a6bffbff24aa5cf85640a06f95e31d08db8.zip |
Merge remote-tracking branch 'origin/fix/service-zoom' into develop
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index f9009af5a..d933ca407 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -178,6 +178,20 @@ export default class AppStore extends Store { | |||
178 | }, | 178 | }, |
179 | ); | 179 | ); |
180 | 180 | ||
181 | // We need to add an additional key listener for ctrl+ on windows. Otherwise only ctrl+shift+ would work | ||
182 | if (isWindows) { | ||
183 | key( | ||
184 | 'ctrl+=', () => { | ||
185 | debug('Windows: zoom in via ctrl+'); | ||
186 | const { webview } = this.stores.services.active; | ||
187 | webview.getZoomLevel((level) => { | ||
188 | // level 9 =~ +300% and setZoomLevel wouldnt zoom in further | ||
189 | if (level < 9) webview.setZoomLevel(level + 1); | ||
190 | }); | ||
191 | }, | ||
192 | ); | ||
193 | } | ||
194 | |||
181 | this.locale = this._getDefaultLocale(); | 195 | this.locale = this._getDefaultLocale(); |
182 | 196 | ||
183 | this._healthCheck(); | 197 | this._healthCheck(); |