diff --git a/desktop/onionshare/main_window.py b/desktop/onionshare/main_window.py index 323f64fd..7cad2df1 100644 --- a/desktop/onionshare/main_window.py +++ b/desktop/onionshare/main_window.py @@ -119,6 +119,8 @@ class MainWindow(QtWidgets.QMainWindow): ) ) ) + sequence = QtGui.QKeySequence(QtCore.Qt.CTRL + QtCore.Qt.Key_H) + self.settings_button.setShortcut(sequence) self.settings_button.setAccessibleName(strings._("gui_settings_window_title")) self.settings_button.clicked.connect(self.open_settings) self.settings_button.setStyleSheet(self.common.gui.css["settings_button"]) diff --git a/desktop/onionshare/tab_widget.py b/desktop/onionshare/tab_widget.py index 11e22878..c272c4e8 100644 --- a/desktop/onionshare/tab_widget.py +++ b/desktop/onionshare/tab_widget.py @@ -249,6 +249,9 @@ class TabWidget(QtWidgets.QTabWidget): from_autoconnect=from_autoconnect, ) settings_tab.close_this_tab.connect(self.close_settings_tab) + sequence = QtGui.QKeySequence(QtCore.Qt.CTRL + QtCore.Qt.Key_X) + close_shortcut = QtWidgets.QShortcut(sequence, settings_tab) + close_shortcut.activated.connect(self.close_settings_tab) self.tor_settings_tab = settings_tab.tor_settings_tab self.tor_settings_tab.tor_is_connected.connect(self.tor_is_connected) self.tor_settings_tab.tor_is_disconnected.connect(self.tor_is_disconnected)