diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-12-31 21:21:17 +0900 |
|---|---|---|
| committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-01-11 11:49:44 +0900 |
| commit | 36eb7d19909f719191376481da6b121ec6272c65 (patch) | |
| tree | 9d8db7a68d910ddc4b4c9aba5d9c74a09af30b32 /files/ja/web/api/mouseevent/ctrlkey/index.html | |
| parent | 09caa137e715c2c8d74df68b2f325186225219e6 (diff) | |
| download | translated-content-36eb7d19909f719191376481da6b121ec6272c65.tar.gz translated-content-36eb7d19909f719191376481da6b121ec6272c65.tar.bz2 translated-content-36eb7d19909f719191376481da6b121ec6272c65.zip | |
Web/API/MouseEvent 以下の文書を更新準備
Diffstat (limited to 'files/ja/web/api/mouseevent/ctrlkey/index.html')
| -rw-r--r-- | files/ja/web/api/mouseevent/ctrlkey/index.html | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/files/ja/web/api/mouseevent/ctrlkey/index.html b/files/ja/web/api/mouseevent/ctrlkey/index.html deleted file mode 100644 index 920a4cae65..0000000000 --- a/files/ja/web/api/mouseevent/ctrlkey/index.html +++ /dev/null @@ -1,75 +0,0 @@ ---- -title: MouseEvent.ctrlKey -slug: Web/API/MouseEvent/ctrlKey -translation_of: Web/API/MouseEvent/ctrlKey ---- -<p>{{APIRef("DOM Events")}}</p> - -<p>読み取り専用プロパティ <strong><code>MouseEvent.ctrlKey</code></strong> は、イベント発生時に <kbd>control</kbd> キーが押されたかどうかを、押されていた (<code>true</code>) または押されていない (<code>false</code>) の{{jsxref("Boolean")}} で返します。</p> - -<h2 id="構文">構文</h2> - -<pre class="syntaxbox">var <em>ctrlKeyPressed</em> = <em>instanceOfMouseEvent</em>.ctrlKey -</pre> - -<h3 id="戻り値">戻り値</h3> - -<p>A boolean</p> - -<h2 id="Example" name="Example">例</h2> - -<pre class="brush: js"><html> -<head> -<title>ctrlKey使用例</title> - -<script type="text/javascript"> - -function showChar(e){ - alert( - "Key Pressed: " + String.fromCharCode(e.charCode) + "\n" - + "charCode: " + e.charCode + "\n" - + "CTRL key pressed: " + e.ctrlKey + "\n" - ); -} - -</script> -</head> - -<body onkeypress="showChar(event);"> -<p>何か文字キーを単体またはCTRLキーと同時に押してください。<br /> -また、CTRLキーに加え、SHIFTキーも同時に使用できます。</p> -</body> -</html> -</pre> - -<h2 id="仕様">仕様</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - <tr> - <td>{{SpecName('DOM3 Events','#widl-MouseEvent-ctrlKey','MouseEvent.ctrlKey')}}</td> - <td>{{Spec2('DOM3 Events')}}</td> - <td>{{SpecName('DOM2 Events')}}から変更なし</td> - </tr> - <tr> - <td>{{SpecName('DOM2 Events','#Events-MouseEvent','MouseEvent.ctrlKey')}}</td> - <td>{{Spec2('DOM2 Events')}}</td> - <td>最初期の定義</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ互換性</h2> - -<p>{{Compat("api.MouseEvent.ctrlKey")}}</p> - -<h2 id="See_also" name="See_also">関連情報</h2> - -<ul> - <li>{{ domxref("MouseEvent") }}</li> -</ul> |
