Add Ctrl+Q quit shortcut for non-Mac

This commit is contained in:
Drew Weymouth
2024-02-03 11:56:21 -08:00
parent 7943b17199
commit e20bdcad37
4 changed files with 23 additions and 14 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ const (
)
var (
BackShortcuts = []desktop.CustomShortcut{
QuitShortcut *desktop.CustomShortcut = nil // Fyne already adds Cmd+Q
BackShortcuts = []desktop.CustomShortcut{
{Modifier: fyne.KeyModifierSuper, KeyName: fyne.KeyLeft},
{Modifier: fyne.KeyModifierSuper, KeyName: fyne.KeyLeftBracket},
}
+1
View File
@@ -13,6 +13,7 @@ const (
)
var (
QuitShortcut = &desktop.CustomShortcut{Modifier: KeyModifierControl, KeyName: fyne.KeyQ}
BackShortcuts = []desktop.CustomShortcut{
{Modifier: fyne.KeyModifierAlt, KeyName: fyne.KeyLeft},
}