Force reload shortcut to F5 key
GNOME/GTK environments could map the reload shortcut to Ctrl+R which clashes with the Reveal shortcut.
This commit is contained in:
@@ -355,7 +355,7 @@ void MainWindow::createActions()
|
|||||||
|
|
||||||
const QIcon reloadIcon = QIcon::fromTheme("document-revert");
|
const QIcon reloadIcon = QIcon::fromTheme("document-revert");
|
||||||
QAction *reloadAct = fileMenu->addAction(reloadIcon, tr("Reload"), this, &MainWindow::reload);
|
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"));
|
reloadAct->setStatusTip(tr("Reload the document from disk"));
|
||||||
|
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
|
|||||||
Reference in New Issue
Block a user