TouchEvent: shiftKey プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
shiftKey
は TouchEvent
インターフェイスの読み取り専用プロパティで、タッチイベントが作成されたときに shift キーが押されていたかどうかを示す論理値を返します。このキーが押されていた場合、属性の値は true
になります。そうでなかった場合は false
になります。
値
論理値で、 shift キーがこのイベントで押されていた場合は true
、 shift が押されていなかった場合は false
です。
例
TouchEvent.altKey の例に、このプロパティの使い方の例があります。
仕様書
Specification |
---|
Touch Events # dom-touchevent-shiftkey |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
shiftKey |
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.