Skip to content

Commit

Permalink
fix(ADA-94): Play and pause is not working with enter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzipi-kaltura committed Nov 23, 2023
1 parent fef3444 commit 4226c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/play-pause/play-pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class PlayPause extends Component {
playerContainer.focus();
});
eventManager.listen(document, 'keydown', event => {
if (event.code === 'Space') {
if (event.code === 'Space' || event.code === 'Enter') {
if (document.activeElement === playerContainer) {
event.preventDefault();
this.props.isPlayingAdOrPlayback ? this.props.updateOverlayActionIcon(IconType.Pause) : this.props.updateOverlayActionIcon(IconType.Play);
Expand Down

0 comments on commit 4226c49

Please sign in to comment.