mysociety/popit — pull request #88 by domoritz (2012-05-08 16:46:26+00:00)
Title: Fix a problem that prevents firefox users from adding a new site

If you want to create a new site you have to choose a name. In Firefox 13 it is not possible to type in a name. The input validation of the slug field checks whether the keyCode is ok. However, sometimes the code is stored in keyChar. $.which fixes that. Read more on https://developer.mozilla.org/en/DOM/event.charCode#Notes.

And about which: http://api.jquery.com/event.which/