Skip to content

Let editor caret navigation scroll under the gesture watch - #3925

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-40176544925-editor
Oct 25, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-40176544925-editor

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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_position in the main run.

Read the caret keys from the runtime's canonical CARET_KEYS and text-entry identity from its existing typesText reading. 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.

@leaf-agent
leaf-agent merged commit d161244 into main Oct 25, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-40176544925-editor branch October 25, 2026 09:33
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