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/shiftkey/index.html | 76 ------------------------- files/ja/web/api/mouseevent/shiftkey/index.md | 76 +++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 76 deletions(-) delete mode 100644 files/ja/web/api/mouseevent/shiftkey/index.html create mode 100644 files/ja/web/api/mouseevent/shiftkey/index.md (limited to 'files/ja/web/api/mouseevent/shiftkey') diff --git a/files/ja/web/api/mouseevent/shiftkey/index.html b/files/ja/web/api/mouseevent/shiftkey/index.html deleted file mode 100644 index 8e97c700ed..0000000000 --- a/files/ja/web/api/mouseevent/shiftkey/index.html +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: MouseEvent.shiftKey -slug: Web/API/MouseEvent/shiftKey -translation_of: Web/API/MouseEvent/shiftKey ---- -

{{APIRef("DOM Events")}}

- -

MouseEvent.shiftKeyは読み取り専用のプロパティです。  shift キーが押された (true) か離されている (false) かを各イベント時に表します。

- -

文法

- -
var shiftKeyPressed = instanceOfMouseEvent.shiftKey
-
- -

返り値

- -

A boolean

- -

使用例

- -
<html>
-<head>
-<title>shiftKey example</title>
-
-<script type="text/javascript">
-
-function showChar(e){
-  alert(
-    "Key Pressed: " + String.fromCharCode(e.charCode) + "\n"
-    + "charCode: " + e.charCode + "\n"
-    + "SHIFT key pressed: " + e.shiftKey + "\n"
-    + "ALT key pressed: " + e.altKey + "\n"
-  );
-}
-
-</script>
-</head>
-
-<body onkeypress="showChar(event);">
-<p>シフトキーを押しながらアルファベットキーを押してみてください。<br />
-同様に Altキーとも同時に使うことができます。</p>
-</body>
-</html>
-
- -

仕様

- - - - - - - - - - - - - - - - - - - -
仕様ステータス注釈
{{SpecName('DOM3 Events','#widl-MouseEvent-shiftKey','MouseEvent.shiftKey')}}{{Spec2('DOM3 Events')}}次から変更なし{{SpecName('DOM2 Events')}}.
{{SpecName('DOM2 Events','#Events-MouseEvent','MouseEvent.shiftKey')}}{{Spec2('DOM2 Events')}}初期の定義
- -

ブラウザの互換性

- -

{{Compat("api.MouseEvent.shiftKey")}}

- -

参考

- - diff --git a/files/ja/web/api/mouseevent/shiftkey/index.md b/files/ja/web/api/mouseevent/shiftkey/index.md new file mode 100644 index 0000000000..8e97c700ed --- /dev/null +++ b/files/ja/web/api/mouseevent/shiftkey/index.md @@ -0,0 +1,76 @@ +--- +title: MouseEvent.shiftKey +slug: Web/API/MouseEvent/shiftKey +translation_of: Web/API/MouseEvent/shiftKey +--- +

{{APIRef("DOM Events")}}

+ +

MouseEvent.shiftKeyは読み取り専用のプロパティです。  shift キーが押された (true) か離されている (false) かを各イベント時に表します。

+ +

文法

+ +
var shiftKeyPressed = instanceOfMouseEvent.shiftKey
+
+ +

返り値

+ +

A boolean

+ +

使用例

+ +
<html>
+<head>
+<title>shiftKey example</title>
+
+<script type="text/javascript">
+
+function showChar(e){
+  alert(
+    "Key Pressed: " + String.fromCharCode(e.charCode) + "\n"
+    + "charCode: " + e.charCode + "\n"
+    + "SHIFT key pressed: " + e.shiftKey + "\n"
+    + "ALT key pressed: " + e.altKey + "\n"
+  );
+}
+
+</script>
+</head>
+
+<body onkeypress="showChar(event);">
+<p>シフトキーを押しながらアルファベットキーを押してみてください。<br />
+同様に Altキーとも同時に使うことができます。</p>
+</body>
+</html>
+
+ +

仕様

+ + + + + + + + + + + + + + + + + + + +
仕様ステータス注釈
{{SpecName('DOM3 Events','#widl-MouseEvent-shiftKey','MouseEvent.shiftKey')}}{{Spec2('DOM3 Events')}}次から変更なし{{SpecName('DOM2 Events')}}.
{{SpecName('DOM2 Events','#Events-MouseEvent','MouseEvent.shiftKey')}}{{Spec2('DOM2 Events')}}初期の定義
+ +

ブラウザの互換性

+ +

{{Compat("api.MouseEvent.shiftKey")}}

+ +

参考

+ + -- cgit v1.2.3-54-g00ecf