Files
BrowserOS/packages
Nikhil Sonti 7eb87458da fix: use CDP selectAll command for cross-platform field clearing
clearField() used Control+A to select all text before deleting, but on
macOS Chrome, Ctrl+A is the Emacs "beginning of paragraph" binding — not
select-all. This meant the clear tool never actually cleared field content.

Use CDP's `commands: ['selectAll']` parameter on dispatchKeyEvent to trigger
the browser's editing command directly, bypassing platform-specific keyboard
shortcut mappings. Also adds a dedicated Browser.clear() method so the clear
tool no longer routes through fill() with an empty string.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 18:08:12 -07:00
..
2026-03-12 14:24:07 -07:00