TouchEvent: ctrlKey プロパティ

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

ctrlKeyTouchEvent インターフェイスの読み取り専用プロパティで、タッチイベントが作成されたときに control (コントロール)キーが押されていたかどうかを示す論理値を返します。このキーが押されていた場合、属性の値は true です。そうでなかった場合は false です。

このプロパティは読取専用です。

論理値で、 control キーがこのイベントで押されていた場合は true、押されていなかった場合は false です。

TouchEvent.altKey の例に、このプロパティの使い方の例があります。

仕様書

Specification
Touch Events
# dom-touchevent-ctrlkey

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
ctrlKey

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Has more compatibility info.