jqGrid navGrid search submit on Enter keypress not working

后端 未结 4 420
我在风中等你
我在风中等你 2020-12-22 00:12

I\'d like to be able to invoke the find button on the search dialog when the \"Enter/Return\" key is pressed. Unfortunately the \'savekey\' option doesn\'t submit the form

4条回答
  •  不知归路
    2020-12-22 01:04

    I had the same problem on FireFox but the above solution worked fine in IE. In order to make it work on Firefox I had to use the focus function instead of click as below:

    beforeShowSearch: function (form) {
                            form.keydown(function (e) {
                                if (e.which == 13) {
                                    $("#fbox_list_search").focus();
                                }
                            });
                        },
    

提交回复
热议问题