Cgridview Filters Triggers Only Once When Using Enter Key (Firefox)

Hi and first, thank you for this great framework !

I am working with :

Yii 1.1.14

JQuery 1.11

Firefox 25

I am having some trouble with the CGridView filters in Firefox.

If I trigger a filter by using enter key once, it become impossible to trigger another filtering when loosing focus or on the value change of a select

Thank you by advance for any answer !

I found an issue on gitHub about that matter, and posted a solution in the comments. (github.com/yiisoft/yii/issues/2881) (Sorry I am not allowed to post links)

The problem was the keyCode propertie of the javascript event which is not recognised by all browser. The solution is to try and use the charCode instead like this :




if((event.keyCode ? event.keyCode : event.charCode) !==13)



instead of




if(event.keyCode !== 13)