From d4e15cb0af7f45ff8a2a240f901916fa5900932b Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 16 Jun 2026 22:00:48 +0100 Subject: [PATCH] UI/Qt: Add keyboard shortcut to view history Bind the canonical history shortcut for each platform to the "View History" action: Ctrl+H on Linux and Windows, and Cmd+Y on macOS. --- UI/Qt/Menu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UI/Qt/Menu.cpp b/UI/Qt/Menu.cpp index e4370820bd..8b3de376be 100644 --- a/UI/Qt/Menu.cpp +++ b/UI/Qt/Menu.cpp @@ -193,6 +193,13 @@ static void initialize_native_control(WebView::Action& action, QAction& qaction, qaction.setIcon(create_chrome_icon(ChromeIcon::Globe, palette)); break; + case WebView::ActionID::ViewHistory: +#if defined(AK_OS_MACOS) + qaction.setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Y)); +#else + qaction.setShortcut(QKeySequence(Qt::CTRL | Qt::Key_H)); +#endif + break; case WebView::ActionID::OpenProcessesPage: qaction.setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_M)); break;