On 12-Sep-06, at 9:35 AM, [EMAIL PROTECTED] wrote:

> I am trying to find a way to catch when a function key is pressed, and
> perform my own action.  I tried useing the preventDefault method,  
> which
> works, but then I loose all key strokes in my form.

Instead of doing something like this:

     handler = function(e) {
         e.preventDefault()
     }

You need to do something like this:

     handler = function(e) {
         if (e.key().string == 'KEY_F1') {
             e.preventDefault();
             doYourThing();
         }
     }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to