jQuery event.metakey Property
Example
Return whether the meta key is pressed:
$( "#checkMetaKey" ).click(function( event ) {
$( "#display" ).text( event.metaKey );
});
$( "#display" ).text( event.metaKey );
});
Try it »
Definition and Usage
The event.metakey property returns a boolean value (true or false) indicating whether the META key is pressed when the event is triggered.
Syntax
event.metakey
| Parameters | Description |
|---|---|
| event | Required.eventThe parameter comes from the event binding function. |
Other Extensions
jQuery Event Methods