aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoratyamash <atyamash@yahoo-corp.jp>2022-03-09 19:45:43 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-03-12 21:09:33 +0900
commiteaf4b3a1cebea97822f0b942c03f03e7e0628bf5 (patch)
tree0d86a5c0316c50e57f1e9f46d12bbb0ffa7b98a2
parent110df40cbfe901169b9ac7b1da1e29be198bdfd7 (diff)
downloadtranslated-content-eaf4b3a1cebea97822f0b942c03f03e7e0628bf5.tar.gz
translated-content-eaf4b3a1cebea97822f0b942c03f03e7e0628bf5.tar.bz2
translated-content-eaf4b3a1cebea97822f0b942c03f03e7e0628bf5.zip
user_input_methods のキーボードの和訳追加
-rw-r--r--files/ja/web/guide/user_input_methods/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/ja/web/guide/user_input_methods/index.html b/files/ja/web/guide/user_input_methods/index.html
index a856722917..30989d253f 100644
--- a/files/ja/web/guide/user_input_methods/index.html
+++ b/files/ja/web/guide/user_input_methods/index.html
@@ -38,19 +38,19 @@ translation_of: Web/Guide/User_input_methods
<p>以下は推奨事項一式であり、オープンなウェブアプリでそのようなツールを利用するためのベストプラクティスです。</p>
-<h3 id="Decide_what_input_mechanism_you’re_using">Decide what input mechanism you’re using</h3>
+<h3 id="Decide_what_input_mechanism_you’re_using">使用する入力の仕組みを決める</h3>
<h4 id="Keyboard" name="Keyboard">キーボード</h4>
-<p>Keyboard input can be controlled by your app. For example if you want to add controls when any key gets pressed, you need to add an event listener on the window object:</p>
+<p>キーボード入力はあなたのアプリによって制御できます。例えば、何らかのキーが押された時に制御を追加したい場合、ウィンドウオブジェクトにイベントリスナーを追加する必要があります。</p>
<pre class="brush: js notranslate">window.addEventListener("keydown", handleKeyDown, true);
window.addEventListener("keyup", handleKeyUp, true);</pre>
-<p>where <code>handleKeyDown</code> and <code>handleKeyUp</code> are the functions implementing the controls about the <code>keydown</code> and <code>keyup</code> events.</p>
+<p><code>handleKeyDown</code> と <code>handleKeyUp</code> は、<code>keydown</code> と <code>keyup</code> イベントについての制御を実装する関数です。</p>
<div class="note">
-<p><strong>注</strong>: Have a look at the <a href="/ja/docs/Web/Reference/Events">Events reference</a> and {{domxref("KeyboardEvent")}} guide to find out more about keyboard events.</p>
+<p><strong>注</strong>: キーボードイベントについて、より知りたい人は<a href="/ja/docs/Web/Reference/Events">イベントリファレンス</a> と {{domxref("KeyboardEvent")}} ガイドをご確認ください。</p>
</div>
<h4 id="Mouse" name="Mouse">マウス</h4>