You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<overview>Use the <b>altKey</b> <control_sttag="function">function</control_st> to check whether the <glossarytag="Alt key">Alt key</glossary>, <glossarytag="Meta key">Meta key</glossary>, or Option key is being pressed. You can use <b>altKey</b> to add alternative capabilities to user actions such as clicking.</overview>
<parameters></parameters>
<value>The <b>altKey</b> <control_sttag="function">function</control_st> <glossarytag="return">returns</glossary> down if the key is pressed and up if it's not.</value>
<comments>The <b>altKey</b>, <functiontag="optionKey">optionKey</function>, and metaKey <glossarytag="function">functions</glossary> all <constanttag="return">return</constant> the same <functiontag="value">value</function>. Which one to use is a matter of preference.<p>The terminology varies depending on platform. Users of different operating systems may know this key as the Option key (Mac OS systems), Meta key (Unix systems), or Alt key (Windows systems).</p></comments>