Open
Conversation
Contributor
|
键盘选择时仍然会滚动页面。按理说不应该。🤔 |
Contributor
|
选到顶部/底部的选项后继续按键盘,页面还会滚动。 合理的行为是到顶/底后,再按键盘会跳到底/顶,由此循环。 |
Glavo
reviewed
Feb 24, 2026
| public LineSelectButton() { | ||
| this.getStyleClass().add(DEFAULT_STYLE_CLASS); | ||
|
|
||
| this.addEventHandler(KeyEvent.KEY_PRESSED, this::handleKeyEvent); |
Contributor
There was a problem hiding this comment.
我在 Windows 测试是有作用的,目前的效果和 #5636 (comment) 的预期行为一致。
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.
resolves #5452