mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 15:46:28 +08:00
fix(win): fix alt-based worker window keyboard shortcut
This commit is contained in:
parent
bee6708a4a
commit
74e3d14d0f
1 changed files with 5 additions and 1 deletions
|
@ -109,9 +109,13 @@ class ApplicationMenu
|
||||||
return unless windowMenu
|
return unless windowMenu
|
||||||
idx = _.findIndex(windowMenu.submenu, ({id}) -> id is 'window-list-separator')
|
idx = _.findIndex(windowMenu.submenu, ({id}) -> id is 'window-list-separator')
|
||||||
|
|
||||||
|
workShortcut = "CmdOrCtrl+alt+w"
|
||||||
|
if process.platform is "win32"
|
||||||
|
workShortcut = "ctrl+shift+f10"
|
||||||
|
|
||||||
accelerators = {
|
accelerators = {
|
||||||
'default': 'CmdOrCtrl+0',
|
'default': 'CmdOrCtrl+0',
|
||||||
'work': 'CmdOrCtrl+alt+w',
|
'work': workShortcut,
|
||||||
}
|
}
|
||||||
windows = global.application.windowManager.getOpenWindows()
|
windows = global.application.windowManager.getOpenWindows()
|
||||||
windowsItems = windows.map (w) => {
|
windowsItems = windows.map (w) => {
|
||||||
|
|
Loading…
Reference in a new issue