DavidoTek / ProtonUp-Qt

Install and manage GE-Proton, Luxtorpeda & more for Steam and Wine-GE & more for Lutris with this graphical user interface.
https://davidotek.github.io/protonup-qt
GNU General Public License v3.0
1.22k stars 40 forks source link

Add Quit Shortcut #205

Closed sonic2kk closed 1 year ago

sonic2kk commented 1 year ago

Adds the option to use QKeySequence.Quit to quit the application. Generally on Linux this is Ctrl+Q (for some command line stuff it can be Ctrl+Shift+Q). Though we could use QShortcut(QKeySequence('Ctrl+Q')), it's generally better to use built-in QKeySequence values for shortcuts.

I had this idea when working on #204, and eventually figured out how to properly implement keyboard shortcuts. I'll look into updating how I did it in that PR too :-)

Thanks!