jQuery Tutorial Tutorials - jQuery event.metaKey

jQuery event.metaKey

The event.metaKey property in jQuery will check if the META key(Win key or Command key) was pressed when the event fired.

jQuery event.metaKey property Example

example

Check if the META key was pressed when the event fired.

$("button").click(function( event ) {
  console.log( event.metaKey );
});

Try now

Date:2019-08-29 10:24:03 From:www.Lautturi.com author:Lautturi