Skip to content

Commit

Permalink
fix: use Ctrl+Q for quit menu accelerator on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo authored and shiftkey committed Aug 12, 2024
1 parent 6fb905a commit 8d73a21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main-process/menu/build-default-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export function buildDefaultMenu({

if (!__DARWIN__) {
const fileItems = fileMenu.submenu as Electron.MenuItemConstructorOptions[]
const exitAccelerator = __WIN32__ ? 'Alt+F4' : 'CmdOrCtrl+Q'

fileItems.push(
separator,
Expand All @@ -134,7 +135,7 @@ export function buildDefaultMenu({
{
role: 'quit',
label: 'E&xit',
accelerator: 'Alt+F4',
accelerator: exitAccelerator,
}
)
}
Expand Down

0 comments on commit 8d73a21

Please sign in to comment.