Skip to content

Commit 5ce0416

Browse files
authored
fix key listeners to use onKeyDown again (#218)
onKeyPress doesn't appear to work properly on linux chrome
1 parent ee2f2c6 commit 5ce0416

File tree

2 files changed

+2541
-2537
lines changed

2 files changed

+2541
-2537
lines changed

webdev/lib/src/serve/injected/client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Future<void> main() async {
5959
}
6060
});
6161

62-
window.onKeyPress.listen((e) {
62+
window.onKeyDown.listen((e) {
6363
if (const [
6464
'd',
6565
'D',

0 commit comments

Comments
 (0)