Perhaps pick up the discussion (if further discussion is needed) in your cross-posted thread in spinoffs http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/7180c33718757180/3834d5597f575299#3834d5597f575299
On Mar 6, 8:24 pm, louis w <[EMAIL PROTECTED]> wrote: > Sorry, did not realize this was the wrong list. > > On Mar 6, 2:03 pm, kangax <[EMAIL PROTECTED]> wrote: > > > Guys, this is a prototype development list. > > Questions like these are better asked > > onhttp://groups.google.com/group/rubyonrails-spinoffs > > > @Jon, > > ctrlKey is not detected properly on mac as far as I know > > > - kangax > > > On Mar 6, 1:42 pm, "Jon L." <[EMAIL PROTECTED]> wrote: > > > > Each event object should have altKey, ctrlKey, and shiftKey booleans. > > > Support is, at least, listed for both IE and FF. > > > > <script type="text/javascript"> > > > document.observe('keydown', function(k) { > > > if (k.ctrlKey) return; > > > alert('ctrl'); > > > }); > > > </script> > > > > - Jon L. > > > > On Mar 5, 7:19 pm, louis w <[EMAIL PROTECTED]> wrote: > > > > > I am trying to detect if the control key has been pressed to change > > > > and action. I am using the latest proto build. > > > > > Here is my code: > > > > > <script type="text/javascript"> > > > > document.observe('keydown', function(k) { > > > > if (k.keyCode != 17) return; > > > > alert('ctrl'); > > > > }); > > > > </script> > > > > > I have noticed that not always on keydown does it register, it comes > > > > to about every other time. > > > > > Can you offer any advice. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---