dart / 2 / dart-html / keyboardeventstream / onkeydown.html

onKeyDown 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);

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/KeyboardEventStream/onKeyDown.html