A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/ja/docs/Web/API/KeyboardEvent/metaKey below:

KeyboardEvent: metaKey プãƒãƒ‘ティ - Web API

KeyboardEvent: metaKey プロパティ

Baseline Widely available

KeyboardEvent.metaKey は読み取り専用のプロパティで、 プロパティは、イベントが発生したときに Meta キーが押されていたか (true) あるいは押されていなかった (false) かを示す論理値を返します。オペレーティングシステムによっては、キーが検出されないように遮蔽されることがあります。

メモ: Macintosh のキーボードでは、これは ⌘ Command キーです。

警告: 少なくとも Firefox 48 の時点で、 ⊞ Windows キーは "Meta" キーとみなされなくなりました。⊞ Windows キーが押されたとき KeyboardEvent.metaKey は false になります。

値

論理値です。

例
<button onclick="ismetaKey(event)">Click me with the meta key</button>

<p id="output"></p>
function ismetaKey(e) {
  document.querySelector("#output").textContent =
    `metaKey pressed? ${e.metaKey}`;
}
結果 仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4