-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy pathevent.metaKey.xml
More file actions
26 lines (26 loc) · 1.04 KB
/
event.metaKey.xml
File metadata and controls
26 lines (26 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0"?>
<entry type="property" name="event.metaKey" return="Boolean">
<title>event.metaKey</title>
<signature>
<added>1.0.4</added>
</signature>
<desc>Indicates whether the META key was pressed when the event fired. </desc>
<longdesc>Returns a boolean value that indicates whether or not the META key was pressed at the time the event fired.
This value varies by system, see <a href="https://developer.mozilla.org/en-US/docs/DOM/event.metaKey">https://developer.mozilla.org/en-US/docs/DOM/event.metaKey</a> for more information.
</longdesc>
<example>
<desc>Determine whether the META key was pressed when the event fired.</desc>
<css>body {background-color: #eef; }
div { padding: 20px; }</css>
<html><![CDATA[
<button value="Test" name="Test" id="checkMetaKey">Click me!</button>
<div id="display"></div>]]></html>
<code><![CDATA[
$('#checkMetaKey').click(function(e){
$('#display').text(e.metaKey);
});
]]></code>
</example>
<category slug="events/event-object"/>
<category slug="version/1.0.4"/>
</entry>