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

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top