From 678c15a06ae772b11ccacbfb90a2d0cbd25dc5a8 Mon Sep 17 00:00:00 2001 From: enkvadrat Date: Sat, 3 May 2025 21:09:36 +0200 Subject: [PATCH] UI/Qt: Add Ctrl-R shortcut for page Reload Keeping things consistent with other browsers where both f5 and Ctr-R can be used to reload. --- UI/Qt/BrowserWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/Qt/BrowserWindow.cpp b/UI/Qt/BrowserWindow.cpp index 278c74f7773..4a49491f829 100644 --- a/UI/Qt/BrowserWindow.cpp +++ b/UI/Qt/BrowserWindow.cpp @@ -646,7 +646,8 @@ BrowserWindow::BrowserWindow(Vector const& initial_urls, IsPopupWindow m_go_back_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Back)); m_go_forward_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Forward)); - m_reload_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Refresh)); + m_reload_action->setShortcuts({ QKeySequence(Qt::CTRL | Qt::Key_R), QKeySequence(Qt::Key_F5) }); + m_go_back_action->setEnabled(false); m_go_forward_action->setEnabled(false); m_reload_action->setEnabled(true);