Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enter key down does not open drop down in Mozilla

Enter key does not open drop down in Mozilla. Works fine in Chrome.(Its chrome default behavior)

Trying something like this to achieve it in Mozilla

var self = this;
    $('select').on('keyup', function (e) {
        if (e.keyCode == 13) { $(this).trigger('click'); }
    });
like image 768
Rohit Kumar Avatar asked Aug 10 '15 05:08

Rohit Kumar


1 Answers

According to this page, the shortcut for Mozilla is Alt+Down Arrow, for select boxes, arrow keys to scroll, Enter to select.

like image 125
ThreeSidedCoin Avatar answered Oct 28 '22 16:10

ThreeSidedCoin