diff options
author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-08-13 17:23:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 17:23:25 +0900 |
commit | a560b0fbfd6b2c4336e9828ee2195d95faea830a (patch) | |
tree | 2931d7bf97fa163dc610337c19776c4f55d47c6f | |
parent | 153876b94583060d79b47cdad0a650fd1c167204 (diff) | |
download | translated-content-a560b0fbfd6b2c4336e9828ee2195d95faea830a.tar.gz translated-content-a560b0fbfd6b2c4336e9828ee2195d95faea830a.tar.bz2 translated-content-a560b0fbfd6b2c4336e9828ee2195d95faea830a.zip |
delete conflicting/Web/API/MouseEvent/button (#1830)
正規版の方が新しいので、 conflicting 版を削除
-rw-r--r-- | files/ja/_redirects.txt | 6 | ||||
-rw-r--r-- | files/ja/_wikihistory.json | 9 | ||||
-rw-r--r-- | files/ja/conflicting/web/api/mouseevent/button/index.html | 61 |
3 files changed, 3 insertions, 73 deletions
diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 3a6b2dc7fe..f47378976b 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -1472,7 +1472,7 @@ /ja/docs/DOM/event /ja/docs/Web/API/Event /ja/docs/DOM/event.altKey /ja/docs/Web/API/MouseEvent/altKey /ja/docs/DOM/event.bubbles /ja/docs/Web/API/Event/bubbles -/ja/docs/DOM/event.button /ja/docs/conflicting/Web/API/MouseEvent/button +/ja/docs/DOM/event.button /ja/docs/Web/API/MouseEvent/button /ja/docs/DOM/event.cancelable /ja/docs/Web/API/Event/cancelable /ja/docs/DOM/event.initEvent /ja/docs/Web/API/Event/initEvent /ja/docs/DOM/event.preventDefault /ja/docs/Web/API/Event/preventDefault @@ -1749,7 +1749,7 @@ /ja/docs/DOM:event /ja/docs/Web/API/Event /ja/docs/DOM:event.altKey /ja/docs/Web/API/MouseEvent/altKey /ja/docs/DOM:event.bubbles /ja/docs/Web/API/Event/bubbles -/ja/docs/DOM:event.button /ja/docs/conflicting/Web/API/MouseEvent/button +/ja/docs/DOM:event.button /ja/docs/Web/API/MouseEvent/button /ja/docs/DOM:event.cancelable /ja/docs/Web/API/Event/cancelable /ja/docs/DOM:event.initEvent /ja/docs/Web/API/Event/initEvent /ja/docs/DOM:event.preventDefault /ja/docs/Web/API/Event/preventDefault @@ -3234,7 +3234,7 @@ /ja/docs/Web/API/Element/accessKey /ja/docs/Web/API/HTMLElement/accessKey /ja/docs/Web/API/Element/currentStyle /ja/docs/orphaned/Web/API/Element/currentStyle /ja/docs/Web/API/Element/name /ja/docs/conflicting/Web/API -/ja/docs/Web/API/Event/button /ja/docs/conflicting/Web/API/MouseEvent/button +/ja/docs/Web/API/Event/button /ja/docs/Web/API/MouseEvent/button /ja/docs/Web/API/Event/createEvent /ja/docs/Web/API/Document/createEvent /ja/docs/Web/API/EventHandler /ja/docs/orphaned/Web/Guide/Events/Event_handlers /ja/docs/Web/API/EventTarget.addEventListener /ja/docs/Web/API/EventTarget/addEventListener diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index 9c0a843962..ef012978ea 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -48413,15 +48413,6 @@ "dextra" ] }, - "conflicting/Web/API/MouseEvent/button": { - "modified": "2019-03-23T23:48:11.013Z", - "contributors": [ - "fscholz", - "khalid32", - "Mgjbot", - "Luna8bit" - ] - }, "conflicting/Web/API/URL": { "modified": "2019-03-23T23:31:44.426Z", "contributors": [ diff --git a/files/ja/conflicting/web/api/mouseevent/button/index.html b/files/ja/conflicting/web/api/mouseevent/button/index.html deleted file mode 100644 index 74d8e3fb44..0000000000 --- a/files/ja/conflicting/web/api/mouseevent/button/index.html +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: event.button -slug: conflicting/Web/API/MouseEvent/button -tags: - - DOM - - Gecko - - Gecko DOM Reference -translation_of: Web/API/MouseEvent/button -translation_of_original: Web/API/event.button -original_slug: Web/API/Event/button ---- -<p>{{ ApiRef() }}</p> -<h3 id="Summary" name="Summary">Summary</h3> -<p>イベントを発生させたマウスのボタンを示しています。</p> -<h3 id="Syntax" name="Syntax">Syntax</h3> -<pre>var buttonCode = event.button; -</pre> -<p>state を変えたボタンを示す整数値を返します。</p> -<ul> - <li>0 は普通の'クリック'であり、通常は左クリック</li> - <li>1 は中ボタンであり、通常はホイールのクリック</li> - <li>2 は右ボタンであり、通常は右クリック</li> -</ul> -<p>ボタンの順序はどのようにポインティングデバイスが設定されているかによります。</p> -<h3 id="Example" name="Example">Example</h3> -<pre><script type="text/javascript"> - -function whichButton(e) -{ - // Handle different event models - var e = e || window.event; - var btnCode; - - if ('object' == typeof e){ - btnCode = e.button; - - switch (btnCode){ - case 0 : alert('Left button clicked'); - break; - case 1 : alert('Middle button clicked'); - break; - case 2 : alert('Right button clicked'); - break; - default : alert('Unexpected code: ' + btnCode); - } - } -} - -</script> - -<p onclick="whichButton(event);">Click with mouse...</p> - -</pre> -<h3 id="Notes" name="Notes">Notes</h3> -<p>マウスのクリックはしばしばUIによって横取りされるため、ある状況では普通のクリック(通常は左クリック)でないマウスのクリックを検出することが普通のクリックよりも難しいかもしれません。</p> -<p>ユーザーはポインティングデバイスのボタンの設定を変更する可能性があり、たといこのイベントの button プロパティが 0 であったとしても、それは物理的にポインティングデバイスの最も左に存在するボタンによるものではないかもしれません。しかし、そんな場合にも、標準的なボタン配置における左クリックと同様の動作をするべきであるとされています。</p> -<h3 id="Specification" name="Specification">Specification</h3> -<p>DOM 2 Events Specification: <a class="external" href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-MouseEvent-button">button</a></p> -<div class="noinclude"> - </div> -<p>{{ languages( { "en": "en/DOM/event.button", "pl": "pl/DOM/event.button" } ) }}</p> |