Javascript Reference
Categories: event

javascript event metaKey

@March 15, 2008, 1:22 a.m.
metaKeyFirefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM n/a

Read-only

Returns true if the keyboard's Meta key (Command key on the Macintosh keyboard) was pressed at the instant the event fired.

 
Example
 
if (evt.metaKey) {
    // process for meta key being down
}
 
Value

Boolean value: true | false.

 
Default

false


Powered by Linode.