Visit Mozilla.org

DOM:event.metaKey

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Indicates whether the META key was pressed when the event fired.

[edit] Syntax

bool = event.metaKey

bool contains true or false, depending on whether the meta key was held down or not, when the event fired.

[edit] Example

 function goInput(e) {
 // checks metaKey and
   if e.metaKey
        // passes event along
     superSizeOutput(e);
   else
     doOutput(e)
 }

[edit] Specification

metaKey