diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/mouseevent/which | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/mouseevent/which')
-rw-r--r-- | files/ja/web/api/mouseevent/which/index.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/files/ja/web/api/mouseevent/which/index.html b/files/ja/web/api/mouseevent/which/index.html new file mode 100644 index 0000000000..8334684b1e --- /dev/null +++ b/files/ja/web/api/mouseevent/which/index.html @@ -0,0 +1,52 @@ +--- +title: MouseEvent.which +slug: Web/API/MouseEvent/which +tags: + - API + - DOM Events + - MouseEvent + - Non-standard + - Property + - Read-only + - Reference +translation_of: Web/API/MouseEvent/which +--- +<p>{{APIRef("DOM Events")}}</p> + +<p>{{Non-standard_header}}</p> + +<p><strong><code>MouseEvent.which</code></strong> プロパティはマウスのボタンを押下したことを示す読み取り専用のプロパティです。このプロパティの標準的な代替は {{ domxref("MouseEvent.button") }} 及び {{ domxref("MouseEvent.buttons") }}です。</p> + +<h2 id="構文">構文</h2> + +<pre class="syntaxbox">var <em>buttonPressed</em> = <em>instanceOfMouseEvent</em>.which +</pre> + +<h3 id="戻り値">戻り値</h3> + +<p>押下したボタンを示す数値型:</p> + +<ul> + <li><code>0</code>: No button</li> + <li><code>1</code>: 左ボタン</li> + <li><code>2</code>: 中央ボタン</li> + <li><code>3</code>: 右ボタン</li> +</ul> + +<p>左利き用に設定されたマウスの場合、ボタンの動作は逆になります。この場合、値は右から左に読み取られます。</p> + +<h2 id="仕様">仕様</h2> + +<p>仕様はありません。</p> + +<h2 id="ブラウザ互換性">ブラウザ互換性</h2> + + + +<p>{{Compat("api.MouseEvent.which")}}</p> + +<h2 id="関連">関連</h2> + +<ul> + <li>{{ domxref("MouseEvent") }}</li> +</ul> |