i’m trying to develop a simple application in dart, and i want to catch the arrow keys press
event, i tried to add a onKeyPress event:
window.on.keyPress.add(myKeyDownEvent);
void myKeyDownEvent(Event event){
query("#text").text = event.type.toString();
}
It works with all keypress except arrow keys what is wrong?
There’s a issue on chrome for that with WontFix status. Comment 5 says :
Using
window.on.keyDowninstead ofwindow.on.keyPressworks for me.