Which key does the e.metaKey refer to in JavaScript MouseEvent?
问题 MouseEvent.metaKey doesn't seem to work. On both FireFox and Chrome, it returns false even if I hold the Win key while clicking: <!doctype html> <button onclick=alert(event.metaKey)>click while holding "meta key"</button> MDN states: The MouseEvent.metaKey read-only property returning a Boolean that indicates if the Meta key was pressed ( true ) or not ( false ) when the event occured. Note: On Macintosh keyboards, this is the command key ( ⌘ ). On Windows keyboards, this is the windows key (