From 36eb7d19909f719191376481da6b121ec6272c65 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Fri, 31 Dec 2021 21:21:17 +0900 Subject: Web/API/MouseEvent 以下の文書を更新準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/api/mouseevent/altkey/index.html | 45 --------------------------- files/ja/web/api/mouseevent/altkey/index.md | 45 +++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 files/ja/web/api/mouseevent/altkey/index.html create mode 100644 files/ja/web/api/mouseevent/altkey/index.md (limited to 'files/ja/web/api/mouseevent/altkey') diff --git a/files/ja/web/api/mouseevent/altkey/index.html b/files/ja/web/api/mouseevent/altkey/index.html deleted file mode 100644 index ffa370b596..0000000000 --- a/files/ja/web/api/mouseevent/altkey/index.html +++ /dev/null @@ -1,45 +0,0 @@ ---- -title: event.altKey -slug: Web/API/MouseEvent/altKey -tags: - - DOM - - Gecko - - Gecko DOM Reference -translation_of: Web/API/MouseEvent/altKey -translation_of_original: Web/API/event.altKey ---- -

{{ ApiRef() }}

-

Summary

-

イベントが発生したときALTキーが押されていたかどうかを示します。

-

Syntax

-
bool = event.altKey
-
-

booltruefalse であり、イベントが発生したときに ALT キーが押されていたかどうかを示しています。

-

Example

-
<html>
-<head>
-<title>altKey example</title>
-
-<script type="text/javascript">
-
-function showChar(e){
-  alert(
-    "Key Pressed: " + String.fromCharCode(e.charCode) + "\n"
-    + "charCode: " + e.charCode + "\n"
-    + "ALT key pressed: " + e.altKey + "\n"
-  );
-}
-
-</script>
-</head>
-
-<body onkeypress="showChar(event);">
-<p>
-Press any character key,
-with or without holding down the ALT key.<br />
-You can also use the SHIFT key together with the ALT key.
-</p>
-</body>
-</html>
-
-

{{ languages( { "en": "en/DOM/event.altKey", "pl": "pl/DOM/event.altKey" } ) }}

diff --git a/files/ja/web/api/mouseevent/altkey/index.md b/files/ja/web/api/mouseevent/altkey/index.md new file mode 100644 index 0000000000..ffa370b596 --- /dev/null +++ b/files/ja/web/api/mouseevent/altkey/index.md @@ -0,0 +1,45 @@ +--- +title: event.altKey +slug: Web/API/MouseEvent/altKey +tags: + - DOM + - Gecko + - Gecko DOM Reference +translation_of: Web/API/MouseEvent/altKey +translation_of_original: Web/API/event.altKey +--- +

{{ ApiRef() }}

+

Summary

+

イベントが発生したときALTキーが押されていたかどうかを示します。

+

Syntax

+
bool = event.altKey
+
+

booltruefalse であり、イベントが発生したときに ALT キーが押されていたかどうかを示しています。

+

Example

+
<html>
+<head>
+<title>altKey example</title>
+
+<script type="text/javascript">
+
+function showChar(e){
+  alert(
+    "Key Pressed: " + String.fromCharCode(e.charCode) + "\n"
+    + "charCode: " + e.charCode + "\n"
+    + "ALT key pressed: " + e.altKey + "\n"
+  );
+}
+
+</script>
+</head>
+
+<body onkeypress="showChar(event);">
+<p>
+Press any character key,
+with or without holding down the ALT key.<br />
+You can also use the SHIFT key together with the ALT key.
+</p>
+</body>
+</html>
+
+

{{ languages( { "en": "en/DOM/event.altKey", "pl": "pl/DOM/event.altKey" } ) }}

-- cgit v1.2.3-54-g00ecf