[mochikit] Re: Instant Modifiers?
On 6-Sep-06, at 1:43 PM, Juergen Schreck wrote: Is there a [crossbrowser (FF,IE,Safari) ] way to capture modifiers instantly, rather than via onkeypress? In my application I'd like to capture when alt was pressed during a mousedrag. This works of course as soon as the mouse is moved 'after' the key was pressed. But assume the mouse was not moving and the alt key was pressed. Is there a way to capture that? Could you set up a separate onkeydown handler that looks for the alt key? Beau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~--~~~~--~~--~--~---
[mochikit] Re: Instant Modifiers?
I could, if it made a difference. 'onkeydown' doesn't fire if only a modfier key is pressed. This is exactly my problem. TIA On Sep 6, 2006, at 4:32 PM, Beau Hartshorne wrote: On 6-Sep-06, at 1:43 PM, Juergen Schreck wrote: Is there a [crossbrowser (FF,IE,Safari) ] way to capture modifiers instantly, rather than via onkeypress? In my application I'd like to capture when alt was pressed during a mousedrag. This works of course as soon as the mouse is moved 'after' the key was pressed. But assume the mouse was not moving and the alt key was pressed. Is there a way to capture that? Could you set up a separate onkeydown handler that looks for the alt key? Beau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~--~~~~--~~--~--~---
[mochikit] Re: Instant Modifiers?
On 6-Sep-06, at 4:28 PM, Juergen Schreck wrote: I could, if it made a difference. 'onkeydown' doesn't fire if only a modfier key is pressed. This is exactly my problem. I understand how what you're looking for would be useful, but I don't know how to coerce a browser to do this, and MochiKit does not try to solve this problem. Please let us know what you find! Thanks, Beau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~--~~~~--~~--~--~---