Skip to content

Commit 74444cd

Browse files
committed
App: Add exit shortcuts
[skip ci]
1 parent acbb25c commit 74444cd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/gdrive_app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,12 @@ def init_ui(self):
408408
# Shortcut for renaming
409409
self.rename_shortcut = QShortcut(QKeySequence("F2"), self)
410410
self.rename_shortcut.activated.connect(self.trigger_rename)
411+
412+
# Shortcuts for exiting
413+
self.quit_shortcut = QShortcut(QKeySequence("Ctrl+Q"), self)
414+
self.quit_shortcut.activated.connect(self.close)
415+
self.close_shortcut = QShortcut(QKeySequence("Ctrl+W"), self)
416+
self.close_shortcut.activated.connect(self.close)
411417

412418
self.file_view.setFocus()
413419

0 commit comments

Comments
 (0)