Ladybird: Let Qt pick the reload shortcut

This fixes an issue on platforms where Ctrl+R is the preferred native
shortcut, and we were effectively trying to set it twice.
This commit is contained in:
Andreas Kling 2023-01-09 17:28:42 +01:00
parent 1242bd5ee5
commit f476b827de
Notes: sideshowbarker 2024-07-17 17:06:59 +09:00

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->setShortcuts({ QKeySequence("Ctrl+R"), QKeySequence::StandardKey::Refresh });
m_reload_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Refresh));
m_toolbar->addAction(m_back_action);
m_toolbar->addAction(m_forward_action);