Add Ctrl-L as log window shortcut
authorChristian Kamm <mail@ckamm.de>
Tue, 6 Nov 2018 09:59:28 +0000 (10:59 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:17 +0000 (10:58 +0100)
F12 is taken on OSX and there's no other way of showing it.

doc/troubleshooting.rst
src/gui/settingsdialog.cpp

index f9644db4776e3dbd61a25dcbfde0e427c412422d..cd7938f6b32e17eca05adbf05e8901e9aec627eb 100644 (file)
@@ -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.
 
index e657a4fbcb1b02ea7dbae7a4992ab07f5e9aab37..e577dece3a3f1bf23c996b359d40cd41ea26b7b3 100644 (file)
@@ -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();