Repository navigation
Move sidebar kind selection to titlebar menu #5044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,13 +194,15 @@ final class MinimalModeSidebarControlActionView: NSView { | |
| return | ||
| } | ||
| switch slot { | ||
| case .toggleSidebar: | ||
| CmuxExtensionSidebarSelection.showMenu(anchorView: self, event: event) | ||
|
Comment on lines
+197
to
+198
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
After this PR the sidebar kind menu no longer contains a "Manage Extensions" entry, and the replacement path is the puzzle button in |
||
| case .newTab: | ||
| _ = AppDelegate.shared?.showNewWorkspaceContextMenu(anchorView: self, event: event) | ||
| case .focusHistoryBack: | ||
| _ = AppDelegate.shared?.showFocusHistoryContextMenu(anchorView: self, event: event, direction: .back) | ||
| case .focusHistoryForward: | ||
| _ = AppDelegate.shared?.showFocusHistoryContextMenu(anchorView: self, event: event, direction: .forward) | ||
| case .toggleSidebar, .showNotifications: | ||
| case .showNotifications: | ||
| super.rightMouseDown(with: event) | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NSImageis created withaccessibilityDescription: nil, which suppresses VoiceOver from reading out the icon for assistive-technology users navigating the menu. Since the menu item already carries a localised title, screen readers will still announce the text, but providing a matching description (or reusing the item title) is the correct pattern for NSMenuItem icons.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!