Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/pages/docs/en/keyboard-shortcuts.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ If you have a live player with no DVR functionality, you might want to turn off

```js
const mc = document.querySelector('media-controller');
mc.hotkeys.add('noarrowleft', 'noarrowright);
mc.hotkeys.add('noarrowleft', 'noarrowright');
```
4 changes: 2 additions & 2 deletions src/js/media-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ class MediaController extends MediaContainer {
this.removeEventListener('keyup', this.#keyUpHandler);
}

get hotkeys(): string | undefined {
return getStringAttr(this, Attributes.HOTKEYS);
get hotkeys(): AttributeTokenList {
return this.#hotKeys;
}

set hotkeys(value: string | undefined) {
Expand Down