diff options
Diffstat (limited to 'src/stores/AppStore.js')
-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(); |