From 24cafa00d4442b2265b543e4c80cf777d3ac2c1c Mon Sep 17 00:00:00 2001 From: "G.K.MacGregor" Date: Tue, 22 Aug 2023 21:42:36 +0100 Subject: [PATCH] Force reload shortcut to F5 key GNOME/GTK environments could map the reload shortcut to Ctrl+R which clashes with the Reveal shortcut. --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 39873c7..fe2eaed 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -355,7 +355,7 @@ void MainWindow::createActions() const QIcon reloadIcon = QIcon::fromTheme("document-revert"); QAction *reloadAct = fileMenu->addAction(reloadIcon, tr("Reload"), this, &MainWindow::reload); - reloadAct->setShortcuts(QKeySequence::Refresh); + reloadAct->setShortcut(QKeySequence(Qt::Key_F5)); reloadAct->setStatusTip(tr("Reload the document from disk")); fileMenu->addSeparator();