jQuery event.metakey property
Example
Return whether the meta key was pressed:
$( "#checkMetaKey" ).click(function( event ) {
$( "#display" ).text( event.metaKey );
});
Try it »
Definition and Usage
The event.metakey property returns a boolean (true or false) indicating whether the META key was pressed when the event was triggered.
Syntax
event
.metakey
| Parameters | Description |
|---|---|
| event | Required.event The parameters come from the event binding function. |
jQuery event methods