Skip to content

Commit

Permalink
change account switch hotkey from ctrl to alt on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
timche committed Feb 15, 2022
1 parent 7116dab commit afb0d83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { initOrUpdateDockMenu } from './menus/dock'
import { initOrUpdateTrayMenu } from './menus/tray'
import { Account } from '../types'
import { defaultAccountId } from '../constants'
import { is } from 'electron-util'

export function getAccount(accountId: string) {
return getAccounts().find(({ id }) => id === accountId)
Expand Down Expand Up @@ -98,7 +99,9 @@ export function getAccountsMenuItems(withAccelerator?: boolean) {
selectAccount(id)
showMainWindow()
},
accelerator: withAccelerator ? `CommandOrControl+${index + 1}` : undefined
accelerator: withAccelerator
? `${is.linux ? 'Alt' : 'CommandOrControl'}+${index + 1}`
: undefined
}))
}

Expand Down

0 comments on commit afb0d83

Please sign in to comment.