cancel(): Symbol

Cancels the event by returning the cancel symbol.

onKeyPress((key) => {
    if (key === "q") return cancel();
});

returnsThe cancel event symbol.

sincev3001.0.5

experimentalThis feature is in experimental phase, it will be fully released in v3001.1.0

kaplay logo

Misc

Layer