aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
authorLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-03-07 17:18:44 +0100
committerLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-03-07 17:25:48 +0100
commit1df3342534ae100d732ad57c9eae7401e5e97a83 (patch)
treedf6b86879b9ecb30938d69776b4dce4b76e11dd8 /src/stores/AppStore.js
parentfix(Service) shortcuts for activating prev/next service fixes #1298 (diff)
downloadferdium-app-1df3342534ae100d732ad57c9eae7401e5e97a83.tar.gz
ferdium-app-1df3342534ae100d732ad57c9eae7401e5e97a83.tar.zst
ferdium-app-1df3342534ae100d732ad57c9eae7401e5e97a83.zip
fix(Service): Fix shortcut for (un)muting notifications & audio
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 1db61a64e..7784ff1f9 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -3,7 +3,6 @@ import {
3 action, computed, observable, reaction, 3 action, computed, observable, reaction,
4} from 'mobx'; 4} from 'mobx';
5import moment from 'moment'; 5import moment from 'moment';
6import key from 'keymaster';
7import { getDoNotDisturb } from '@meetfranz/electron-notification-state'; 6import { getDoNotDisturb } from '@meetfranz/electron-notification-state';
8import AutoLaunch from 'auto-launch'; 7import AutoLaunch from 'auto-launch';
9import prettyBytes from 'pretty-bytes'; 8import prettyBytes from 'pretty-bytes';
@@ -157,28 +156,6 @@ export default class AppStore extends Store {
157 this.stores.router.push(url); 156 this.stores.router.push(url);
158 }); 157 });
159 158
160
161 // Global Mute
162 key(
163 '⌘+shift+m ctrl+shift+m', () => {
164 this.actions.app.toggleMuteApp();
165 },
166 );
167
168 // We need to add an additional key listener for ctrl+ on windows. Otherwise only ctrl+shift+ would work
169 if (isWindows) {
170 key(
171 'ctrl+=', () => {
172 debug('Windows: zoom in via ctrl+');
173 const { webview } = this.stores.services.active;
174 webview.getZoomLevel((level) => {
175 // level 9 =~ +300% and setZoomLevel wouldnt zoom in further
176 if (level < 9) webview.setZoomLevel(level + 1);
177 });
178 },
179 );
180 }
181
182 this.locale = this._getDefaultLocale(); 159 this.locale = this._getDefaultLocale();
183 160
184 this._healthCheck(); 161 this._healthCheck();
@@ -290,7 +267,6 @@ export default class AppStore extends Store {
290 267
291 @action _muteApp({ isMuted, overrideSystemMute = true }) { 268 @action _muteApp({ isMuted, overrideSystemMute = true }) {
292 this.isSystemMuteOverridden = overrideSystemMute; 269 this.isSystemMuteOverridden = overrideSystemMute;
293
294 this.actions.settings.update({ 270 this.actions.settings.update({
295 type: 'app', 271 type: 'app',
296 data: { 272 data: {