mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-19 03:26:28 +00:00
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>