onKeyDown static method

CustomStream<KeyEvent> onKeyDown(
  1. EventTarget target
)

Named constructor to produce a stream for onKeyDown events.

Implementation

static CustomStream<KeyEvent> onKeyDown(EventTarget target) =>
    new _KeyboardEventHandler('keydown').forTarget(target);