onKeyDown method

WidgetElementVisible onKeyDown(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)
inherited

The keydown event is fired when a key is pressed. Read more...

Implementation

WidgetElementVisible onKeyDown(Function(Element, Event)? fun) {
  if (fun != null) on.call('keydown', fun);
  return this;
}