fix(cli): allow scrolling keys in copy mode (Ctrl+S selection mode) (#19933)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Nick Salerni
2026-03-11 00:16:25 -07:00
committed by GitHub
parent c2d38bac54
commit 88638c14f7
4 changed files with 72 additions and 4 deletions
@@ -35,7 +35,8 @@ describe('CopyModeWarning', () => {
const { lastFrame, waitUntilReady, unmount } = render(<CopyModeWarning />);
await waitUntilReady();
expect(lastFrame()).toContain('In Copy Mode');
expect(lastFrame()).toContain('Press any key to exit');
expect(lastFrame()).toContain('Use Page Up/Down to scroll');
expect(lastFrame()).toContain('Press Ctrl+S or any other key to exit');
unmount();
});
});
@@ -19,7 +19,8 @@ export const CopyModeWarning: React.FC = () => {
return (
<Box>
<Text color={theme.status.warning}>
In Copy Mode. Press any key to exit.
In Copy Mode. Use Page Up/Down to scroll. Press Ctrl+S or any other key
to exit.
</Text>
</Box>
);