Skip to content

Press Keys: SDK dispatch_key_event(events=…)#118

Open
pavlo-haidar wants to merge 2 commits into
mainfrom
pavlo/dispatch-key-events
Open

Press Keys: SDK dispatch_key_event(events=…)#118
pavlo-haidar wants to merge 2 commits into
mainfrom
pavlo/dispatch-key-events

Conversation

@pavlo-haidar
Copy link
Copy Markdown
Contributor

@pavlo-haidar pavlo-haidar commented May 12, 2026

Changes (narada, narada-pyodide, narada-core)

  • Added dispatch_key_event(*, events=..., timeout=...) on the browser window.
  • events is a non-empty list of items with:
    • type: "keyDown" | "keyUp" | "press"
    • code (required), optional key, optional modifiers
  • Callers can pass DispatchKeyEventItem instances or plain dicts (same shape as JSON); items are validated before sending the extension action.

@pavlo-haidar pavlo-haidar requested a review from zizhengtai May 12, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant