diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 6bbf302ca..8f0a92c3d 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -1,7 +1,7 @@ | |||
1 | import { remote, shell } from 'electron'; | 1 | import { remote, shell } from 'electron'; |
2 | import { autorun, computed, observable, toJS } from 'mobx'; | 2 | import { autorun, computed, observable, toJS } from 'mobx'; |
3 | 3 | ||
4 | import { isMac, isLinux } from '../environment'; | 4 | import { isMac } from '../environment'; |
5 | 5 | ||
6 | const { app, Menu, dialog } = remote; | 6 | const { app, Menu, dialog } = remote; |
7 | 7 | ||
@@ -276,10 +276,9 @@ export default class FranzMenu { | |||
276 | const services = this.stores.services.enabled; | 276 | const services = this.stores.services.enabled; |
277 | 277 | ||
278 | if (this.stores.user.isLoggedIn) { | 278 | if (this.stores.user.isLoggedIn) { |
279 | const systemAcceleratorKey = isLinux ? 'Alt' : 'CmdOrCtrl'; | ||
280 | return services.map((service, i) => ({ | 279 | return services.map((service, i) => ({ |
281 | label: service.name, | 280 | label: service.name, |
282 | accelerator: i <= 9 ? `${systemAcceleratorKey}+${i + 1}` : null, | 281 | accelerator: i <= 9 ? `CmdOrCtrl+${i + 1}` : null, |
283 | type: 'radio', | 282 | type: 'radio', |
284 | checked: service.isActive, | 283 | checked: service.isActive, |
285 | click: () => { | 284 | click: () => { |