dispatchOnKey method

void dispatchOnKey(
  1. PCanvasKeyEvent event
)

Processes event and calls onKey.

Implementation

void dispatchOnKey(PCanvasKeyEvent event) {
  pCanvas?.dispatchOnKey(event);
  onKey(event);
}