I've defined some global keyboard handling using jQuery's keypress event.
Is there a way to suppress these events for input/textarea fields so as not to interfere with typing?
I've used some hacks with conditions based on element selectors, but those had a big performance impact as they were fired on every single keypress.
(Some of those fields are created dynamically, which is beyond my control - perhaps that's relevant.)