Implement text control select-all defaults - #334
Merged
Merged
Conversation
wieslawsoltes
force-pushed
the
fix/text-control-select-all-331
branch
from
September 17, 2026 22:05
0148328 to
7b82b0a
Compare
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.
Unchanged Code OSS sent an existing absolute folder path to the remote picker as
/Users//private/tmp/...because native Meta+A reached WebScene but did not run the browser default that selects a text control's value. This adds the uncancelled Meta/Ctrl+A default action for eligible inputs and textareas, preserves Alt/cancellation/inert/disabled/non-text behavior, and exposes exact UTF-16 selection positions while retaining byte-safe WTF-8 storage.Chromium oracle:
[0,33], replacementZAβ🙂Z: length 5, selected range[2,4], replacementAβRZA🙂Z: caret[2,2]remains between surrogate units; range replacement withendselection mode produces code units[65,55357,82,56898,90]and caret[3,3]The runtime stores an explicit UTF-16 suboffset for positions inside an astral scalar.
setSelectionRange, selection getters/setters, text editing, andsetRangeTextconvert through that representation; lone surrogate results round-trip through the existing WTF-8 DOM string boundary.Validation on exact base
5a749a83, head7b82b0a9:Closes #331
Related: SceneTech/AppScene#131