Skip to content

Truly independent web browser

UI/Qt: Switch tabs with Command-Option-Arrow keys on macOS

sideshowbarker19e3757420a5
diff --git a/Documentation/UI/QuietDesign.md b/Documentation/UI/QuietDesign.md
index 885f98e5795..9a9e643f5d0 100644
--- a/Documentation/UI/QuietDesign.md
+++ b/Documentation/UI/QuietDesign.md
@@ -613,7 +613,7 @@ address field → page. F6 moves between the chrome and the page.
| Reopen closed tab | ⇧⌘T | Ctrl+Shift+T |
| New window | ⌘N | Ctrl+N |
| New private window | ⇧⌘N | Ctrl+Shift+N |
-| Next / previous tab | ⌃Tab / ⌃⇧Tab | Ctrl+Tab / Ctrl+Shift+Tab |
+| Next / previous tab | ⌃Tab, ⌥⌘→ / ⌃⇧Tab, ⌥⌘← | Ctrl+Tab / Ctrl+Shift+Tab |
| Go to tab 1–8 / last tab | ⌘1–8 / ⌘9 | Ctrl+1–8 / Ctrl+9 |
| Search all tabs | ⇧⌘A | Ctrl+Shift+A |
| Focus address field | ⌘L | Ctrl+L, Alt+D |
diff --git a/UI/Qt/Application.cpp b/UI/Qt/Application.cpp
index d21d8090ee7..5e84b66e546 100644
--- a/UI/Qt/Application.cpp
+++ b/UI/Qt/Application.cpp
@@ -347,6 +347,7 @@ public:
#if defined(AK_OS_MACOS)
QKeySequence(Qt::META | Qt::Key_Tab),
QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_BracketRight),
+ QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_Right),
#endif
});
QObject::connect(m_open_next_tab_action, &QAction::triggered, this, []() {
@@ -361,6 +362,7 @@ public:
#if defined(AK_OS_MACOS)
QKeySequence(Qt::META | Qt::SHIFT | Qt::Key_Tab),
QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_BracketLeft),
+ QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_Left),
#endif
});
QObject::connect(m_open_previous_tab_action, &QAction::triggered, this, []() {