TouchEvent: ctrlKey プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
ctrlKey
は TouchEvent
インターフェイスの読み取り専用プロパティで、タッチイベントが作成されたときに control (コントロール)キーが押されていたかどうかを示す論理値を返します。このキーが押されていた場合、属性の値は true
です。そうでなかった場合は false
です。
このプロパティは読取専用です。
値
論理値で、 control キーがこのイベントで押されていた場合は true
、押されていなかった場合は false
です。
例
TouchEvent.altKey の例に、このプロパティの使い方の例があります。
仕様書
Specification |
---|
Touch Events # dom-touchevent-ctrlkey |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.