mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 04:45:43 +03:00
OS X: CMD+H should hide the dialog
This commit is contained in:
parent
02f971b534
commit
52c12b33c3
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ SettingsDialogMac::SettingsDialogMac(ownCloudGui *gui, QWidget *parent)
|
|||
closeWindowAction->setShortcut(QKeySequence("Ctrl+W"));
|
||||
connect(closeWindowAction, SIGNAL(triggered()), SLOT(close()));
|
||||
addAction(closeWindowAction);
|
||||
// People perceive this as a Window, so also make Ctrl+H work
|
||||
QAction *hideWindowAction = new QAction(this);
|
||||
hideWindowAction->setShortcut(QKeySequence("Ctrl+H"));
|
||||
connect(hideWindowAction, SIGNAL(triggered()), SLOT(hide()));
|
||||
addAction(hideWindowAction);
|
||||
|
||||
setObjectName("SettingsMac"); // required as group for saveGeometry call
|
||||
|
||||
|
|
Loading…
Reference in a new issue