Forráskód Böngészése

Add Ctrl-L as log window shortcut

F12 is taken on OSX and there's no other way of showing it.
Christian Kamm 7 éve
szülő
commit
0d49056a13
2 módosított fájl, 6 hozzáadás és 1 törlés
  1. 1 1
      doc/troubleshooting.rst
  2. 5 0
      src/gui/settingsdialog.cpp

+ 1 - 1
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.
 

+ 5 - 0
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();