Skip to content

Commit 0b2cbf9

Browse files
committed
feat(focusable): open dropdown with space key
1 parent 21d2516 commit 0b2cbf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/select.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ angular.module('ui.select', [])
335335
return;
336336
}
337337

338-
if (e.which == KEY.DOWN || e.which == KEY.UP || e.which == KEY.ENTER){
338+
if (e.which == KEY.DOWN || e.which == KEY.UP || e.which == KEY.ENTER || e.which == KEY.SPACE){
339+
e.preventDefault();
340+
e.stopPropagation();
339341
$select.activate();
340342
}
341343

0 commit comments

Comments
 (0)