diff --git a/Tusker/Screens/Main/NewMainTabBarViewController.swift b/Tusker/Screens/Main/NewMainTabBarViewController.swift index 44335353f8..3b7c32a08b 100644 --- a/Tusker/Screens/Main/NewMainTabBarViewController.swift +++ b/Tusker/Screens/Main/NewMainTabBarViewController.swift @@ -314,10 +314,6 @@ final class NewMainTabBarViewController: BaseMainTabBarViewController { } } - @objc func handleComposeKeyCommand() { - compose(editing: nil) - } - @objc private func sidebarTapped() { #if !os(visionOS) fastAccountSwitcher?.hide() @@ -408,6 +404,33 @@ final class NewMainTabBarViewController: BaseMainTabBarViewController { return true } #endif + + // MARK: Keyboard shortcuts + + @objc func handleSidebarCommandTimelines() { + selectedTab = homeTab + } + + @objc func handleSidebarCommandNotifications() { + selectedTab = notificationsTab + } + + @objc func handleSidebarCommandExplore() { + selectedTab = exploreTab + } + + @objc func handleSidebarCommandBookmarks() { + selectedTab = bookmarksTab + } + + @objc func handleSidebarCommandMyProfile() { + selectedTab = myProfileTab + } + + @objc func handleComposeKeyCommand() { + compose(editing: nil) + } + } @available(iOS 18.0, *)