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_st tag="function">function</control_st> to check whether the <glossary tag="Alt key">Alt key</glossary>, <glossary tag="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_st tag="function">function</control_st> <glossary tag="return">returns</glossary> down if the key is pressed and up if it's not.</value>
<comments>The <b>altKey</b>, <function tag="optionKey">optionKey</function>, and metaKey <glossary tag="function">functions</glossary> all <constant tag="return">return</constant> the same <function tag="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>