Alt Gr keycode, Ctrl left or right...

X

xdevel1999

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
 
E

Evertjan.

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top