Skip to main content

Module browser_press

Module browser_press 

Source
Expand description

Enter and Space on a granted site: as the click they are (docs/specs/SPEC_BROWSER_WEB_TERMINAL_TYPING_2026_10_23.md §5).

Enter and Space skip the classification that keeps an Auto-approve grant’s promises, so key refuses them on a pane an agent drives. A grant that carries the Enter and Space power lifts that refusal for the sites it names, and then the key is never sent: the host says what it would do (a form’s default button, a button, a link, a checkbox) and makes that click through act’s check. A payment, a form that sends to another site and a click the page changed after approval ask or stop exactly as for click. A key whose click the host can’t name is refused.

Enums§

Pressed 🔒
What became of a key call with Enter or Space.

Functions§

grant 🔒
The grant that gives agent the power power on pane, which also covers the page. The person’s standing grant for the agent on the page’s site makes one when the pane has none.
press 🔒
key (Enter, NumpadEnter or Space) on block_id, if the agent holds the power there. selector is focused first, as key does for any key.
press_or_refuse 🔒
key with Enter or Space (or text with a line break) on a pane an agent drives: taken as the click it is when a grant gives the power, otherwise refused with the reason and the way forward. None: carry on with the key (not a driven pane).