-
Notifications
You must be signed in to change notification settings - Fork 236
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
Change behavior of PageUp and PageDown keys #688
Comments
Just to be clear, you're saying the new behavior should move viewport so that it goes from displaying lines B to D to displaying lines E to G, correct?
I've wondered about this myself. I'm ok with changing it. If people want to change it back, they can override the default behavior to what it was before. |
Yes, exactly. |
@JFormDesigner mind submitting a PR for this? Shouldn't be too hard. |
@Jugen just noticed that you're self-assigned to this issue. Do you work on a PR? Some weeks ago I've (partly) implemented this in Markdown Writer FX in this commit: JFormDesigner/markdown-writer-fx@4f5c45b The MWFX implementation not complete. E.g. does not use If you're not working on this, I would improve my code and submit a PR. |
@JFormDesigner no I'm not working on PR yet, so please go ahead .... |
The behavior of the
PageUp
andPageDown
keys in RichTextFX is IMO very unusual compared to other editors (Eclipse, IntelliJ IDEA, etc).Let's say the text is 1000 lines long and there are 50 lines visible.
Pressing
PageDown
key in RichTextFX moves the caret down 50 lines and then scrolls the caret into the visible area. In case the caret was at the top, RichTextFx scrolls only one line down. The caret is then at the bottom of the visible area.In other editors, the text always scrolls 50 lines down and the caret is also moved 50 lines down.
Would it be possible to change this in RichTextFX?
The text was updated successfully, but these errors were encountered: