TouchEvent: shiftKey-Eigenschaft

Limited availability

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

Die schreibgeschützte shiftKey-Eigenschaft des TouchEvent-Interfaces gibt einen booleschen Wert zurück, der angibt, ob die Umschalttaste aktiviert ist, wenn das Touch-Event erstellt wird. Wenn diese Taste aktiviert ist, ist der Wert des Attributs true. Andernfalls ist es false.

Wert

Der boolesche Wert true, wenn die Umschalttaste für dieses Ereignis aktiviert ist; und false, wenn die Umschalttaste nicht aktiviert ist.

Beispiele

Das TouchEvent.altKey Beispiel enthält ein Beispiel für die Verwendung dieser Eigenschaft.

Spezifikationen

Specification
Touch Events
# dom-touchevent-shiftkey

Browser-Kompatibilität

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
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.