Skip to content

feat(): use cmd left and right to change panels#46

Merged
StuBehan merged 1 commit into
StackOneHQ:mainfrom
StuBehan:feat-use-cmd-left-right-to-change-panel
May 20, 2026
Merged

feat(): use cmd left and right to change panels#46
StuBehan merged 1 commit into
StackOneHQ:mainfrom
StuBehan:feat-use-cmd-left-right-to-change-panel

Conversation

@StuBehan

@StuBehan StuBehan commented May 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds Cmd+← / Cmd+→ as an alternative to Cmd+1-4 for stepping between the four main panel tabs (Events, Sessions, Usage, Settings).

Changes

  • panel/Panel.swift: extend the Cmd-only keyDown branch to handle KeyCode.leftArrow / KeyCode.rightArrow, stepping one tab left/right through [.events, .sessions, .usage, .settings]. No wrap; only fires when the current mode is one of those four (bootstrap, phrases, update flows are unaffected).

Testing

  • swift build — clean.
  • Manual: make reload, opened panel, confirmed Cmd+→ cycles Events→Sessions→Usage→Settings and stops; Cmd+← walks back and stops at Events; Cmd+1-4 still jumps directly; arrows from bootstrap/phrases do nothing.

Related issues

@StuBehan StuBehan merged commit b59737e into StackOneHQ:main May 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant