How to detect apple key in Javascript

M

Murtaza.Tinwala

Guest
Dear members,

This is my first post to this forum. In a web application, I want to detect the combination of apple key and some other key. But I am not getting the press of apple key. The syntax event.ctrlKey does not work here.

Please help me.

Regards,

Murtaza.
 
Joined
Feb 2, 2004
Messages
12,455
Reaction score
604
Points
113
Location
PA
Your Mac's Specs
MacBook
Part of the problem lies in that the Apple key is not the ctrl key. Its the Command key.
 
OP
M

Murtaza.Tinwala

Guest
OK Thanks for replying.
If apple key is a command key, then how can I detect it? Is there any different way for doing it?
 
Joined
Jul 25, 2004
Messages
389
Reaction score
5
Points
18
Location
Gaithersburg, MD
Your Mac's Specs
Mac Pro 2.6ghz Quad Xeon, 23" Cinema
You're writing a javascript app that will only work with apple computers?
 
OP
M

Murtaza.Tinwala

Guest
No, actually, my application has to be browser independent. Yes, I am writing a Javascript application. All I want to do is detect the apple+i combination in Javascript.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top