Skip to content

Commit 8663e27

Browse files
committed
Merge pull request #172 from HazCod/patch-1
Toggle combobox when pressing down arrow.
2 parents 8ee398d + b27bdce commit 8663e27

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
@@ -371,6 +371,10 @@
371371
, keyup: function (e) {
372372
switch(e.keyCode) {
373373
case 40: // down arrow
374+
if (!this.shown){
375+
this.toggle();
376+
}
377+
break;
374378
case 39: // right arrow
375379
case 38: // up arrow
376380
case 37: // left arrow

0 commit comments

Comments
 (0)