how to select item using Enter and enable double click in jqgrid in inline edit

前端 未结 1 414
天涯浪人
天涯浪人 2021-01-15 21:44

Enter does not select item in select element in inline edit and blocks double click.

Steps to reproduce:

Open http://trirand.com/blog/jqgrid/jqgrid.html

相关标签:
1条回答
  • 2021-01-15 22:04

    I suggest to solve the problem like in the change. The idea is very easy. Is one change focus many required finalization actions can be done in the current control. For example in case of <select> the 'change' event will be fired, onfocusout will be called and popup menus (context menu or datepicker) will be closed and so on.

    SO I suggest to add the line

    $(ta).closest("tr.jqgrow").focus();
    

    inside of 'keydown' event handler after the line. The results you can see on the demo.

    0 讨论(0)
提交回复
热议问题