From: Christian Kamm Date: Tue, 6 Nov 2018 09:59:28 +0000 (+0100) Subject: Add Ctrl-L as log window shortcut X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~437 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0d49056a1313ccd885057e709777b8bb9d744fa7;p=nextcloud-desktop.git Add Ctrl-L as log window shortcut F12 is taken on OSX and there's no other way of showing it. --- diff --git a/doc/troubleshooting.rst b/doc/troubleshooting.rst index f9644db47..cd7938f6b 100644 --- a/doc/troubleshooting.rst +++ b/doc/troubleshooting.rst @@ -118,7 +118,7 @@ To obtain the client log file: 1. Open the Nextcloud Desktop Client. -2. Press F12 on your keyboard. +2. Press F12 or Ctrl-L on your keyboard. The Log Output window opens. diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp index e657a4fbc..e577dece3 100644 --- a/src/gui/settingsdialog.cpp +++ b/src/gui/settingsdialog.cpp @@ -125,6 +125,11 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent) connect(showLogWindow, &QAction::triggered, gui, &ownCloudGui::slotToggleLogBrowser); addAction(showLogWindow); + auto *showLogWindow2 = new QAction(this); + showLogWindow2->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_L)); + connect(showLogWindow2, &QAction::triggered, gui, &ownCloudGui::slotToggleLogBrowser); + addAction(showLogWindow2); + connect(this, &SettingsDialog::onActivate, gui, &ownCloudGui::slotSettingsDialogActivated); customizeStyle();