The keystatuseschange
event of the MediaKeySession
API fires when there has been a change in the keys or their statuses within a session.
The keystatuseschange
event of the MediaKeySession
API fires when there has been a change in the keys or their statuses within a session.
Use the event name in methods like addEventListener()
, or set an event handler property.
js
addEventListener("keystatuseschange", (event) => {}); onkeystatuseschange = (event) => {};
An ExtendableEvent
. Inherits from Event
.
Doesn't implement any specific properties, but inherits properties from its parent, Event
.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
keystatuseschange_event |
5542–55Theonkeystatuseschange event handler property is not supported. |
79 | 52 | No | 4229–42Theonkeystatuseschange event handler property is not supported. |
12.1 | 5543–55Theonkeystatuseschange event handler property is not supported. |
5542–55Theonkeystatuseschange event handler property is not supported. |
52 | 4229–42Theonkeystatuseschange event handler property is not supported. |
12.2 | 6.04.0–6.0Theonkeystatuseschange event handler property is not supported. |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/keystatuseschange_event