Skip to content

Commit b27bdce

Browse files
author
HazCod
committed
Toggle combobox when pressing down arrow.
Support for keyboard-only navigation. (tested on bootstrap 2.3)
1 parent 1436e73 commit b27bdce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/bootstrap-combobox.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@
351351
, keyup: function (e) {
352352
switch(e.keyCode) {
353353
case 40: // down arrow
354+
if (!this.shown){
355+
this.toggle();
356+
}
357+
break;
354358
case 39: // right arrow
355359
case 38: // up arrow
356360
case 37: // left arrow

0 commit comments

Comments
 (0)