Primitives / API
foldkit-primitives/events
Functions
activeElementEvents | Focus changes on the document. Without a document the stream is empty instead of throwing. Lift with Subscription.persistentEntry, mapping into the parent's… |
ariaKeyshortcuts | The value of aria-keyshortcuts for a pattern: mod+shift+n is Meta+Shift+N on a Mac and Control+Shift+N elsewhere, in the order the pattern wrote its parts.… |
formatHotkey | What to show beside a control for a pattern: ⌘N on a Mac or iPhone, Ctrl+N elsewhere. The text sits in a left-to-right isolate, so a right-to-left layout… |
isTypingTarget | Whether target is where text is typed: a text-like input, a textarea, a select or an editable element. |
keyboardEvents | Key presses and releases on the window. A press made during an IME composition is not reported: it types text, and is no shortcut. Without a window the… |
matchHotkey | Hotkey matching as a pure function over a Pressed payload: matchHotkey answers whether a press is the shortcut, so update stays a table of chords instead of… |
modalityOfKey | A modifier alone says nothing about how the page is being driven. |
pointerEvents | Pointer moves on the window. Without a window the stream is empty instead of throwing. Lift with Subscription.persistentEntry, mapping into the parent's… |
scrollEvents | Scrolls on the window, in the capture phase so container scrolls (which do not bubble) report too. Without a window the stream is empty instead of throwing.… |
Values
Interfaces