Skip to content

Move cursor by a page with PageUp/PageDown - #8741

Draft
hallyhaa wants to merge 4 commits into
emilk:mainfrom
hallyhaa:text-edit-page-up-down
Draft

hallyhaa wants to merge 4 commits into
emilk:mainfrom
hallyhaa:text-edit-page-up-down

Conversation

@hallyhaa

Copy link
Copy Markdown
Contributor

Make PageUp/PageDown move the cursor by one page, and the view scrolls by the same distance so the cursor stays on the same screen row.

Breaking change: CCursorRange::on_event and on_key_press now take the visible height of the text as a new page_height: f32 parameter.

  • I have followed the instructions in the PR template

Breaking change: `CCursorRange::on_event` and `on_key_press` now take visible height as a new `page_height: f32`.
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Preview available at https://egui-pr-preview.github.io/pr/8741-text-edit-page-up-down
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

This branch has not been deployed

No deployments
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