mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-09 09:38:07 +08:00
fix(linux): Additional menu fixes
This commit is contained in:
parent
0ecb388fa4
commit
e78136df8d
2 changed files with 6 additions and 6 deletions
|
@ -162,10 +162,10 @@ class ApplicationMenu
|
|||
label: "N1"
|
||||
submenu: [
|
||||
{ label: "Check for Update", metadata: {autoUpdate: true}}
|
||||
{ label: 'Reload', accelerator: 'Command+R', click: => BrowserWindow.getFocusedWindow()?.reload() }
|
||||
{ label: 'Close Window', accelerator: 'Command+Shift+W', click: => BrowserWindow.getFocusedWindow()?.close() }
|
||||
{ label: 'Toggle Dev Tools', accelerator: 'Command+Alt+I', click: => BrowserWindow.getFocusedWindow()?.toggleDevTools() }
|
||||
{ label: 'Quit', accelerator: 'Command+Q', click: -> app.quit() }
|
||||
{ label: 'Reload', accelerator: 'CmdOrCtrl+R', click: => BrowserWindow.getFocusedWindow()?.reload() }
|
||||
{ label: 'Close Window', accelerator: 'CmdOrCtrl+Shift+W', click: => BrowserWindow.getFocusedWindow()?.close() }
|
||||
{ label: 'Toggle Dev Tools', accelerator: 'CmdOrCtrl+Alt+I', click: => BrowserWindow.getFocusedWindow()?.toggleDevTools() }
|
||||
{ label: 'Quit', accelerator: 'CmdOrCtrl+Q', click: -> app.quit() }
|
||||
]
|
||||
]
|
||||
|
||||
|
|
|
@ -82,8 +82,8 @@ class MenuManager
|
|||
filtered = {}
|
||||
for key, bindings of keystrokesByCommand
|
||||
for binding in bindings
|
||||
continue if binding.indexOf(' ') != -1
|
||||
continue unless /(cmd|ctrl|shift|alt|mod)/.test(binding)
|
||||
continue unless binding.indexOf(' ') is -1
|
||||
continue unless /(cmd|ctrl|shift|alt|mod)/.test(binding) or /f\d+/.test(binding)
|
||||
filtered[key] ?= []
|
||||
filtered[key].push(binding)
|
||||
filtered
|
||||
|
|
Loading…
Reference in a new issue