Explorar o código

Add Ctrl-L as log window shortcut

F12 is taken on OSX and there's no other way of showing it.
Christian Kamm %!s(int64=7) %!d(string=hai) anos
pai
achega
0d49056a13
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  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();