Skip to content

Commit

Permalink
Merge pull request desktop#19093 from shiftkey/shiftkey/accelerator-f…
Browse files Browse the repository at this point in the history
…or-linux

use Ctrl+Q for quit menu accelerator on Linux
  • Loading branch information
sergiou87 authored Aug 12, 2024
2 parents 61ec267 + 8d73a21 commit d1fe97d
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 d1fe97d

Please sign in to comment.