From: xdevel1999 on 11 Dec 2008 05:04 Hi, I wanted to know if a user have pressed the following keys: Alt Gr, Ctrl left or right but with the event.keyCode the values returned are: for Ctrl always 17 for both left or right for Alt Gr Firefox returns a 18 following 17 while IE 17 now how can I know if a user has pressed a left Ctrl key or better an Alt Gr key? Thanks
From: Evertjan. on 11 Dec 2008 05:06 xdevel1999 wrote on 11 dec 2008 in comp.lang.javascript: > Hi, > > I wanted to know if a user have pressed the following keys: > > Alt Gr, Ctrl left or right but with the event.keyCode the values > returned are: > > for Ctrl always 17 for both left or right > for Alt Gr Firefox returns a 18 following 17 while IE 17 > > now how can I know if a user has pressed a left Ctrl key or better an > Alt Gr key? Ask the user? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
|
Pages: 1 Prev: Inheritance Chain Next: Javascript Bible 6th Edition (Danny Goodman, Michael Morrison) |