https://bugzilla.wikimedia.org/show_bug.cgi?id=28668
--- Comment #2 from Roan Kattouw <roan.katt...@gmail.com> 2011-04-25 09:34:24 UTC --- (In reply to comment #0) > Changing 'input[type=]' to 'input' fixes them, but would presumably also try > to > apply to checkboxes, radios, etc. Either needs a selector to match things with > *no* type attribute, or just hit them all and let the setup function worry > about changing them. > Be very careful about cross-browser compatibility here. Edge cases such as matching type-less inputs with input[type=] or input:not([type]) or whatever seem to work differently in different browsers. > More generally though, I suspect that the current bindings will fail to engage > when inputs or textareas are added later, for instance by a popup dialog. > Instead of binding events on every individual input field, it might be wise to > do some kind of global .live() check on focus/blur to activate the keyboard > bindings on a given field. Yeah, I thought about this, but never got to it. Because existence isn't an event that you can live(), I think you would have to use delegate() on the body or something. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l