Module

PsSpa.Event

Package
purescript-ps-spa
Repository
the-man-with-a-golden-mind/ps-spa

Opaque DOM event handed to handlers registered with PsSpa.Html.onEvent (and its specialisations like onInput, onKeyDown, …).

The helpers in this module extract the most common pieces — value, key, modifiers, geometry — and return zeroed defaults when the field doesn't apply to the event type (so the FFI surface stays total).

Example:

onEvent "wheel" \event -> Scrolled { dy: deltaY event, ctrl: ctrlKey event }

#EventValue Source