diff --git a/src/components/fullscreen/fullscreen.tsx b/src/components/fullscreen/fullscreen.tsx index 9ea019a00..eade4d3c4 100644 --- a/src/components/fullscreen/fullscreen.tsx +++ b/src/components/fullscreen/fullscreen.tsx @@ -56,6 +56,14 @@ class Fullscreen extends Component< any > { _keyboardEventHandlers: Array = [ + { + key: { + code: KeyMap.ENTER + }, + action: event => { + this.handleKeydown(event); + } + }, { key: { code: KeyMap.F @@ -92,6 +100,10 @@ class Fullscreen extends Component< */ handleKeydown(event: KeyboardEvent): void { switch (event.keyCode) { + case KeyMap.ENTER: + if (!event.repeat) { + this.toggleFullscreen(); + } case KeyMap.F: if (!this.props.player!.isFullscreen()) { this.toggleFullscreen();