How does "the user is filling in a form" equate to "the mouse is over an input element"? Those seem like two quite different and unrelated things.
I've watched a lot of people fill in forms, and quite often they will click in an input element and then move the mouse out of the way so they can see what they are typing. A few people (like me) will even fill in forms without ever having the mouse near an input element, by using the Tab key to navigate through the form. I wonder if this might be closer to what you're looking for: $('input').focus( function(){...} ).blur( function(){...} ); -Mike > From: Jeroen > > I have a few keys bound to a function, but I want it to be > temporary disabled when a user is filling in a form. > > I thought this would do it: > > $('input').hover( function() { > $('input').unbind("keypress"); > }, function() { > // Rebind stuff > }); > > But it's not working. What am I doing wrong here?