Update dhk with exit hotkey

This commit is contained in:
Roland Thomas Jr 2024-02-24 11:12:25 -05:00
parent b9cff89885
commit a82ebced6a
Signed by: roland
GPG Key ID: 7C3C2B085A4C2872
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,9 @@ class TabbedWindow(QMainWindow):
self.toggle_key = QShortcut(QKeySequence("Alt+n"), self) self.toggle_key = QShortcut(QKeySequence("Alt+n"), self)
self.toggle_key.activated.connect(self.toggle_tabs) self.toggle_key.activated.connect(self.toggle_tabs)
self.exit_key = QShortcut(QKeySequence("Alt+w"), self)
self.exit_key.activated.connect(sys.exit)
def toggle_tabs(self): def toggle_tabs(self):
current_index = self.tab_widget.currentIndex() current_index = self.tab_widget.currentIndex()
num_tabs = self.tab_widget.count() num_tabs = self.tab_widget.count()