I
appreciate your help. I'm still at a loss. Let me ask
again with specifics.
I had
in mind adding an onClick event handler to an image. I wasn't able to
field keypress events on the image (if I ) and I was wondering if I could
interrogate the CTRL and ALT keys during the onClick event?
Sam
Sure can... inspect the event object... i forget the exact names of the properties you want, but http://www.w3schools.com is great for looking this stuff up...
and instead of Ctrl Alt, might i suggest something harder to guess, like: up, up, down, down, left, right, left, right, b, a, select, start? Oops, maybe you're not making AjaxContra, huh? :-O
On 7/10/06, Sam <[EMAIL PROTECTED]> wrote:I'd like to leave some debug code on a website, the debug window made visible with an onClick event on some object, but requiring CTRL-ALT or some combination to be held down.Is it possible to check state of keyboard keys in an onClick handler, or can anyone suggest some other technique which casual visitors would not stumble upon?Sam
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs