Files
orca/src
Jinwoo Hong 5a0795a59b fix(browser): double-click in the address bar selects a word, like other browsers (#27371)
* fix(browser): double-click in the address bar selects a word, like other browsers

The click that focuses the address bar selects the whole URL. Chromium treats
a press inside a selection as a possible text drag, so the second press of a
double-click never picked a word, and re-clicking a blurred bar restored its
old selection instead of selecting all. Clear that selection before the press
(focusing first, as Firefox's urlbar does) so single, double and triple clicks
match Chrome and Firefox.

* refactor(browser): keep address-bar click selection to one flag inside its hook

The focusing press now focuses and clears the selection itself, so focus can
always select all and the bar no longer shares the press flag with its focus
and blur handlers. A second press only meets a range our click made, so
event.detail === 2 replaces the select-all flag.
2026-10-11 03:04:38 -04:00
..