Dan
2007-Dec-09 03:12 UTC
capturing arrow keypress on IE7 with Prototype 1.6 doesn''t work?
Hi! does anyone know a fix for this? in FF and Opera everything is fine, but in IE7 arrow keys are ignored. thank you --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
kangax
2007-Dec-09 07:45 UTC
Re: capturing arrow keypress on IE7 with Prototype 1.6 doesn''t work?
How exactly are you capturing them? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Dan
2007-Dec-09 19:08 UTC
Re: capturing arrow keypress on IE7 with Prototype 1.6 doesn''t work?
document.observe(''keypress'', keyManager); function keyManager(event) { var key = event.which || event.keyCode; alert(key); .......................... this returns the correct values for pretty much every key, except the right part of the keyboard. pressing arrows, or page up/down does not trigger/retyrn anything. any clues? kangax wrote:> How exactly are you capturing them?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Gareth Evans
2007-Dec-09 20:44 UTC
Re: capturing arrow keypress on IE7 with Prototype 1.6 doesn''t work?
try watching keyDown check ajaxian for a writeup on the key handling capabilities cross browser. On Dec 10, 2007 8:08 AM, Dan <designweb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > document.observe(''keypress'', keyManager); > function keyManager(event) > { > var key = event.which || event.keyCode; > alert(key); > .......................... > > this returns the correct values for pretty much every key, except the > right part of the keyboard. > pressing arrows, or page up/down does not trigger/retyrn anything. > any clues? > > kangax wrote: > > How exactly are you capturing them? > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Dan
2007-Dec-09 22:28 UTC
Re: capturing arrow keypress on IE7 with Prototype 1.6 doesn''t work?
thank you, Gareth, keydown works just fine On Dec 9, 10:44 pm, "Gareth Evans" <agr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> try watching keyDown > check ajaxian for a writeup on the key handling capabilities cross browser. > > On Dec 10, 2007 8:08 AM, Dan <design...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > document.observe(''keypress'', keyManager); > > function keyManager(event) > > { > > var key = event.which || event.keyCode; > > alert(key); > > .......................... > > > this returns the correct values for pretty much every key, except the > > right part of the keyboard. > > pressing arrows, or page up/down does not trigger/retyrn anything. > > any clues? > > > kangax wrote: > > > How exactly are you capturing them?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Gareth Evans
2007-Dec-09 22:30 UTC
Re: capturing arrow keypress on IE7 with Prototype 1.6 doesn''t work?
No problem. Gareth On Dec 10, 2007 11:28 AM, Dan <designweb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > thank you, Gareth, keydown works just fine > > On Dec 9, 10:44 pm, "Gareth Evans" <agr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > try watching keyDown > > check ajaxian for a writeup on the key handling capabilities cross > browser. > > > > On Dec 10, 2007 8:08 AM, Dan <design...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > document.observe(''keypress'', keyManager); > > > function keyManager(event) > > > { > > > var key = event.which || event.keyCode; > > > alert(key); > > > .......................... > > > > > this returns the correct values for pretty much every key, except the > > > right part of the keyboard. > > > pressing arrows, or page up/down does not trigger/retyrn anything. > > > any clues? > > > > > kangax wrote: > > > > How exactly are you capturing them? > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---