jQuery event.metakey Property

jQuery 事件方法jQuery Event Methods

Example

Return whether the meta key is pressed:

$( "#checkMetaKey" ).click(function( event ) {
    $( "#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.


jQuery 事件方法jQuery Event Methods

Other Extensions