Repository navigation
Let editor caret navigation scroll under the gesture watch - #3925
Merged
Merged
Conversation
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.
Let the shift watch recognize standard caret navigation in text editors even when the editor prevents the browser default to implement it itself. CodeMirror's PageDown does that: its caret stays at the same viewport offset while its content scrolls. The new watch from #3921 instead treated that intended movement as a forbidden scroll, failing
test_file_editor_page_navigation_preserves_the_caret_positionin the main run.Read the caret keys from the runtime's canonical
CARET_KEYSand text-entry identity from its existingtypesTextreading. This changes only the suite's judgment; editor behavior stays the same. Ordinary edits and presses remain subject to the scroll check.Validation: the original file-editor test reproduces the 552px finding on main and passes after the correction. A new regression fails before this change, then passes while also checking that an ordinary editing key scrolling the same field still produces
gesture-scrolled. All seven existing gesture-scroll cases pass. Ruff checks and formatting pass. The run's separate trace navigation declaration is in #3924, and #3922 fixed its board-reference selector failure.