1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

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.
This commit is contained in:
enkvadrat 2025-05-03 21:09:36 +02:00 committed by Shannon Booth
parent 86f2d291ca
commit 678c15a06a
Notes: github-actions[bot] 2025-05-06 22:21:54 +00:00

View file

@ -646,7 +646,8 @@ BrowserWindow::BrowserWindow(Vector<URL::URL> 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);