metaKey property
bool
get
metaKey
The KeyboardEvent.metaKey
read-only property returning a
boolean value that indicates if the Meta key was pressed
(true
) or not (false
) when the event occurred. Some operating
systems may intercept the key so it is never detected.
Note: On Macintosh keyboards, this is the ⌘ Command key.
Note: Before Firefox 118, the ⊞ Windows key was handled as an "OS" key rather than the "Meta" key.
KeyboardEvent.metaKey
wasfalse
when the ⊞ Windows key was pressed.
Implementation
external bool get metaKey;