aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/document
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/document')
-rw-r--r--files/ja/web/api/document/keydown_event/index.html2
-rw-r--r--files/ja/web/api/document/keyup_event/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/files/ja/web/api/document/keydown_event/index.html b/files/ja/web/api/document/keydown_event/index.html
index 243aedc1b1..4a5da11168 100644
--- a/files/ja/web/api/document/keydown_event/index.html
+++ b/files/ja/web/api/document/keydown_event/index.html
@@ -40,7 +40,7 @@ translation_of: Web/API/Document/keydown_event
<p><code>keydown</code> および {{domxref("Document/keyup_event", "keyup")}} イベントが、どのキーが押されたのかを示すコードを提供するのに対し、 {{domxref("Document/keypress_event", "keypress")}} はどの<em>文字</em>が入力されたかを示します。例えば、小文字の "a" は <code>keydown</code> および <code>keyup</code> では65になるのに対し、 <code>keypress</code> では97になります。大文字の "A" はどのイベントでも65と報告されます。</p>
-<p>Firefox 65 から、 <code>keydown</code> および {{domxref("Document/keyup_event", "keyup")}} イベントは IME 入力中でも発生するようになり、 CJKT のユーザーのブラウザー間の互換性が向上しました ({{bug(354358)}}、またもっと有益な詳細は <a href="https://www.fxsitecompat.com/en-CA/docs/2018/keydown-and-keyup-events-are-now-fired-during-ime-composition/">keydown and keyup events are now fired during IME composition</a> を参照)。 IME 入力中のすべての <code>keydown</code> イベントを無視するには、次のようにします (229 は IME によって処理されたイベントに関連する <code>keyCode</code> の特殊な値のセットです)。</p>
+<p>Firefox 65 から、 <code>keydown</code> および {{domxref("Document/keyup_event", "keyup")}} イベントは IME 入力中でも発生するようになり、 CJKT のユーザーのブラウザー間の互換性が向上しました ({{bug(354358)}})。 IME 入力中のすべての <code>keydown</code> イベントを無視するには、次のようにします (229 は IME によって処理されたイベントに関連する <code>keyCode</code> の特殊な値のセットです)。</p>
<pre class="brush: js">eventTarget.addEventListener("keydown", event =&gt; {
if (event.isComposing || event.keyCode === 229) {
diff --git a/files/ja/web/api/document/keyup_event/index.html b/files/ja/web/api/document/keyup_event/index.html
index d2905b72d1..58752edd11 100644
--- a/files/ja/web/api/document/keyup_event/index.html
+++ b/files/ja/web/api/document/keyup_event/index.html
@@ -42,7 +42,7 @@ translation_of: Web/API/Document/keyup_event
<p><strong>注:</strong> 入力値の変更に反応する方法を探しているのであれば、 <a href="/ja/docs/Web/API/HTMLElement/input_event"><code>input</code> イベント</a>を使用してください。 <code>keyup</code> では、テキスト入力のコンテキストニューからテキストを貼り付けた場合など、一部の変更が検出されません。</p>
</div>
-<p>Firefox 65 から、 {{domxref("Document/keydown_event", "keydown")}} および <code>keyup</code> イベントは IME 入力中でも発生するようになり、 CJKT のユーザーのブラウザー間の互換性が向上しました ({{bug(354358)}}、またもっと有益な詳細は <a href="https://www.fxsitecompat.com/en-CA/docs/2018/keydown-and-keyup-events-are-now-fired-during-ime-composition/">keydown and keyup events are now fired during IME composition</a> を参照)。 IME 入力中のすべての <code>keyup</code> イベントを無視するには、次のようにします (229 は IME によって処理されたイベントに関連する <code>keyCode</code> の特殊な値のセットです)。</p>
+<p>Firefox 65 から、 {{domxref("Document/keydown_event", "keydown")}} および <code>keyup</code> イベントは IME 入力中でも発生するようになり、 CJKT のユーザーのブラウザー間の互換性が向上しました ({{bug(354358)}})。 IME 入力中のすべての <code>keyup</code> イベントを無視するには、次のようにします (229 は IME によって処理されたイベントに関連する <code>keyCode</code> の特殊な値のセットです)。</p>
<pre class="brush: js notranslate">eventTarget.addEventListener("keyup", event =&gt; {
if (event.isComposing || event.keyCode === 229) {