ViewerKeyboard Module
Public contract module exposed by this FS.Skia.UI package.
Functions and values
| Function or value |
Description
|
|
Feature 108 (US5, FR-016): the all-false `KeyModifiers` — an unmodified key's modifier set.
|
|
|
|
Public contract function exposed by this FS.Skia.UI package.
|
Full Usage:
normalizeEventWithModifiers event
Parameters:
ViewerKeyEvent
Returns: ViewerKey * bool * KeyModifiers
|
Feature 108 (US5, FR-016): strip the leading `Ctrl+`/`Alt+`/`Shift+`/`Meta+` prefixes (case-insensitive, any order, repeats tolerated) off the raw key, then `normalize` the base key. Returns the base `ViewerKey`, the down/up flag (as `normalizeEvent`), and the held `KeyModifiers`. An unmodified key yields `noModifiers` and the SAME `ViewerKey` as `normalizeEvent` (byte-identical routing); a chord recovers every held modifier — zero silent loss (SC-009). Pure, total; never throws.
|
|