Repository navigation
feat(macos): add transcript keyboard navigation shortcuts - #2193
Merged
Merged
Conversation
Page Up and Page Down scroll the chat by a screen, Home goes to the first message and End to the latest, following output again. The keys reach the chat from the composer and search fields but never from the terminal, the preview or an open sheet, and modified variants stay with the text field. The chat scroller's probe for the AppKit scroll view now looks again after layout: it was added to the window before the scroll view, never found it, and dragging the scroller or clicking its track did nothing. Closes #2191 Claude-Session: https://claude.ai/code/session_01SZ3DB3WXnKyfSuHppCNJFg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2191
Key bindings
Routing and page math live in
RustCodeKit/TranscriptKeys.swiftwith focused tests; the app installs one key monitor that only classifies the first responder.Bug fixed along the way
The chat scroller's
EnclosingScrollViewprobe never found itsNSScrollView(it was added to the window before being placed inside the scroll view), soChatScrollState.scrollViewstayed nil and dragging the custom scroller or clicking its track did nothing. The probe now looks again after layout.Verified
Debug build driven via
RUSTCODE_DRIVE(newkeyandopendriver commands) on a 328-message chat: Page Up moved the clip 724 pt, Page Down back, second Page Down snapped to the end, Home → offset −4 (top, screenshot checked), End → bottom, Shift/⌘-Page Up ignored.swift testpasses (229 tests).https://claude.ai/code/session_01SZ3DB3WXnKyfSuHppCNJFg