Repository navigation
fix(browser): the address field shows the I-beam over its whole box while it is edited - #1247
Merged
Merged
Conversation
…hile it is edited While the address was being edited the field had no press handler, so only the input inside it was under the pointer: its padding and its leading icon showed the arrow, where official's whole field is cursor: text (packages/gui-plugins/src/browser/bar.css:22). The field keeps a handler while edited: a press on its own box gives the keyboard back to the input, as official's does (panel.tsx:1000-1006), with the text and selection as they are.
Hona
marked this pull request as ready for review
November 25, 2026 18:48
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
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.
While the browser's address is being edited, the pointer shows the I-beam over the whole field, as the official app does. Before, only the text inside showed it: the field's padding and its leading icon showed the arrow. This is the last named cursor difference from the official app.
Why
Official's address field is
cursor: texton the whole field (packages/gui-plugins/src/browser/bar.css:22). A press on the field itself, not on a child, gives the keyboard to the input (packages/gui-plugins/src/browser/panel.tsx:1000-1006).Ours set the cursor on the field too (#1187), but while the address was edited the field had no press handler. An element with no handler is not under the pointer, so the cursor came from the pane behind it. #1187 named this gap; its pass then measured it:
What changes
Two files of the browser plugin, Luau only. No Rust, and the plugin contract is unchanged.
plugins/browser/panel.luau: the field keeps its press handler while it is edited. At rest a press starts the edit, as before. While edited a press asks forfocus.plugins/browser/init.luau:focusgives the keyboard back to the input and changes nothing else: the text and the selection stay as they are. (editselects the whole address, which is right at rest and wrong in the middle of typing.)What a user sees
Run
On this PR's Windows x64 build (head
60fa29155, run 45668462935), beside two builds without the change, each named with its case below:abc, press the field's right end, typedabcd9bc491fdc, run 45600119142.1eede252b, run 45645247982.scripts/guardrails.ps1: 9 of 9 pass on this head. Builds: macOS, Windows x64 and arm64, Linux x64 are green. Linux arm64 is not built in a PR run.Not run