Unable to Dispatch KeyEvent
s
#43544
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
type-question
A question about expected behavior or functionality
web-libraries
Issues impacting dart:html, etc., libraries
Dispatching
KeyboardEvent
s seems fine, but, ideally, I would rather use the richerKeyEvent
, in order to make testing much easier.Whenever I try to dispatch an event with, for example:
I get
I don't get why this happens, because a
KeyEvent
implements aKeyboardEvent
, which is anEvent
.Also, I don't get why the docs tell us to
add
to aStream
, when that is in fact not possible, or is it? — theadd
method is only supported if we are working with, for example, aSink
or aStreamController
.The text was updated successfully, but these errors were encountered: