From f476b827deaa72381f56d3e23de7c54323b8b74f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 9 Jan 2023 17:28:42 +0100 Subject: [PATCH] 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. --- Ladybird/Tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ladybird/Tab.cpp b/Ladybird/Tab.cpp index ed92747972..2cdba38971 100644 --- a/Ladybird/Tab.cpp +++ b/Ladybird/Tab.cpp @@ -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(QIcon(home_icon_path), "Home"); m_reload_action = make(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);