On Jun 29, 2006, at 2:23 PM, Jason Bunting wrote:

I am still trying to wrap my head around how things work in MochiKit, and after spending 20 minutes banging my head against the wall, humbly seek some assistance. I want to check all keys pressed, so I attach to that event like this:

 

connect(window.document, "onkeyup", HandleOnKeyUp);

 

Now, in HandleOnKeyUp() I want to check for a certain key combinations – I see in the docs that key() is supposed to give me what I want, but it is a method on an event object. Where do I get that? Having only had 8 hours of sleep in the last 2 days probably isn’t helping me, but this seems like it should be easy.


The event object is the first parameter to HandleOnKeyUp.

Take a look at the key_events example.

-bob


--~--~---------~--~----~------------~-------~--~----~
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