fuseKeyEvent function

void fuseKeyEvent(
  1. FuseKeyEventFn fn
)

Calls function fn when a key event occurs.

Implementation

void fuseKeyEvent(FuseKeyEventFn fn) {
  _fuseKeysCheck();
  final component = fuseComponent<FuseKeys>();
  component._keyEventFns.add(fn);
}