On 18/02/07, Peter Vulgaris <[EMAIL PROTECTED]> wrote:
> Around line 310 of iautocompleter.js there is a line like this:
>
> if (/13|27|35|36|38|40|9/.test(pressedKey) && jQuery.iAuto.items) {
>
> While keycode 9 is the enter key, the regex there also matches for any
> other keycode with a 9 in it. I know there's a nice looking regex way
> to fix this but it's Saturday night and I'm fixing it now with this:
>
> if ((/13|27|35|36|38|40/.test(pressedKey) || pressedKey == 9) &&
> jQuery.iAuto.items) {
>
> Peter
> http://www.vulgarisoip.com
I think this will work as well:
if (/^(13|27|35|36|38|40|9)$/.test(pressedKey) && jQuery.iAuto.items) {
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/