Grid > after filter in header, I want selected row

I used the event as shown below.
After filter in header, I hope the first row of the filtered content is selected.
So, move the line freely with the keyboard.
But, Now After filter in header, cursor remains in the filter text.
Help me, please.

mygrid.attachEvent(“onFilterEnd”, function(indexes,values){
$(".filter input[type=‘text’]").keydown(function(evt) {//enter key
if (evt.keyCode == 13){
mygrid.selectRow(0,true,true,true);
}
});

http://snippet.dhtmlx.com/a2f881303

Please check the next snippet, it uses the similar code
It seems selection works correctly with your code. If you need to start editing of the filtered row - add editCell command

   myGrid.selectRow(0,true,true,true);
   myGrid.editCell();