1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

Ladybird: Add Qt's standard refresh key (F5) to reload shortcuts

This commit is contained in:
Karol Kosek 2023-01-08 17:49:08 +01:00 committed by Andreas Kling
parent a28aa8e6c1
commit 01a786310d

View file

@ -56,7 +56,7 @@ Tab::Tab(BrowserWindow* window, StringView webdriver_content_ipc_path)
m_forward_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Forward));
m_home_action = make<QAction>(QIcon(home_icon_path), "Home");
m_reload_action = make<QAction>(QIcon(reload_icon_path), "Reload");
m_reload_action->setShortcut(QKeySequence("Ctrl+R"));
m_reload_action->setShortcuts({ QKeySequence("Ctrl+R"), QKeySequence::StandardKey::Refresh });
m_toolbar->addAction(m_back_action);
m_toolbar->addAction(m_forward_action);