translateKeyboardEvent
translateKeyboardEvent(
ev):KeyEvent|null
Defined in: src/driver/web/dom.ts:41
Map a DOM KeyboardEvent-shaped object to a ztui KeyEvent, matching
the terminal parser’s naming (e.g. “pagedown”, “enter”; a plain space stays
the literal character so text input keeps working). Returns null for keys
with no terminal equivalent (F-keys, bare modifier presses, etc.).
Parameters
Section titled “Parameters”altKey?
Section titled “altKey?”boolean
ctrlKey?
Section titled “ctrlKey?”boolean
string
metaKey?
Section titled “metaKey?”boolean
shiftKey?
Section titled “shiftKey?”boolean
Returns
Section titled “Returns”KeyEvent | null