Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How to detect the apple key in Javascript

How to detect the apple key in Javascript
Thread Tools
Murtaza.Tinwala
Fresh-Faced Recruit
Join Date: Aug 2006
Status: Offline
Reply With Quote
Aug 22, 2006, 12:57 AM
 
Hi members,

This is my first post to this forum. In a web application, I want to detect the press of apple key along with some other key. When user presses such combination, I want to take some action. For example, when users presses apple+k, I want some event to happen. I tried event.ctrlKey and event.metaKey, but they always show false with apple key. However, they work well with Windows platform and show the status of control key.

Please help me.

Murtaza.
     
parallax
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Aug 22, 2006, 12:07 PM
 
Hi Murtaza, I'm moving this to Web Developer.
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 10:02 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,