cancel(): Symbol
Cancels the event by returning the cancel symbol.
onKeyPress((key) => { if (key === "q") return cancel(); });
returns
The cancel event symbol.
since
v3001.0.5
experimental
This feature is in experimental phase, it will be fully released in v3001.1.0