From eaf4b3a1cebea97822f0b942c03f03e7e0628bf5 Mon Sep 17 00:00:00 2001 From: atyamash Date: Wed, 9 Mar 2022 19:45:43 +0900 Subject: user_input_methods のキーボードの和訳追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/guide/user_input_methods/index.html | 8 ++++---- 1 file 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

以下は推奨事項一式であり、オープンなウェブアプリでそのようなツールを利用するためのベストプラクティスです。

-

Decide what input mechanism you’re using

+

使用する入力の仕組みを決める

キーボード

-

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:

+

キーボード入力はあなたのアプリによって制御できます。例えば、何らかのキーが押された時に制御を追加したい場合、ウィンドウオブジェクトにイベントリスナーを追加する必要があります。

window.addEventListener("keydown", handleKeyDown, true);
 window.addEventListener("keyup", handleKeyUp, true);
-

where handleKeyDown and handleKeyUp are the functions implementing the controls about the keydown and keyup events.

+

handleKeyDownhandleKeyUp は、keydownkeyup イベントについての制御を実装する関数です。

-

: Have a look at the Events reference and {{domxref("KeyboardEvent")}} guide to find out more about keyboard events.

+

: キーボードイベントについて、より知りたい人はイベントリファレンス と {{domxref("KeyboardEvent")}} ガイドをご確認ください。

マウス

-- cgit v1.2.3-54-g00ecf