Skip to content

Commit 3e2c2ba

Browse files
committed
Issue dart-lang#3052: up/down arrox bug fix
1 parent bac0f59 commit 3e2c2ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/search.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,12 @@ void initializeSearch(
331331
return;
332332
}
333333

334-
if (event is! KeyEvent) {
334+
if (event.type != 'keydown') {
335335
return;
336336
}
337337

338+
event = event as KeyboardEvent;
339+
338340
if (event.code == 'Enter') {
339341
var selectingElement = selectedElement ?? 0;
340342
var href = suggestionElements[selectingElement].dataset['href'];

0 commit comments

Comments
 (0)