From c5d2aeaa5f3f33e59c3ee05178dbaa92cf334454 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Wed, 24 Mar 2021 13:35:58 +0100 Subject: [PATCH] =?UTF-8?q?PICARD-2156:=20Use=20=E2=8C=98+=E2=87=A7+H=20as?= =?UTF-8?q?=20shortcut=20for=20history=20window=20on=20macOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On macOS ⌘+H is a system shortcut to hide the window --- picard/ui/mainwindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/picard/ui/mainwindow.py b/picard/ui/mainwindow.py index cfc5515f5..28eafef6f 100644 --- a/picard/ui/mainwindow.py +++ b/picard/ui/mainwindow.py @@ -664,7 +664,8 @@ class MainWindow(QtWidgets.QMainWindow, PreserveGeometry): self.view_history_action = QtWidgets.QAction(_("View Activity &History"), self) self.view_history_action.triggered.connect(self.show_history) # TR: Keyboard shortcut for "View Activity History" - self.view_history_action.setShortcut(QtGui.QKeySequence(_("Ctrl+H"))) + # On macOS ⌘+H is a system shortcut to hide the window. Use ⌘+Shift+H instead. + self.view_history_action.setShortcut(QtGui.QKeySequence(_("Ctrl+Shift+H") if IS_MACOS else _("Ctrl+H"))) webservice_manager = self.tagger.webservice.manager webservice_manager.authenticationRequired.connect(self.show_password_dialog)