dart - How to listen to keyUp event in capture mode? -
i looking @ dart api find way listen keyup event using capture mode. new stream system there's no parameter specify capture anymore:
document.body.onkeyup.listen(callback); // where's old "usecapture" parameter?
to achieve same thing streams, here's example:
element.keyupevent.fortarget(document.body, usecapture: true).listen((e) { // stuff. print('here go'); });
the method used above, creates stream capture mode. stream interface (listen()
method) quite generic, , can't have specific functionality looking for.
Comments
Post a Comment