Fix video not taking focus on interaction

Revert part of #737 to restore hotkey functionality
This commit is contained in:
Thibaut Girka 2020-11-20 14:20:17 +01:00
parent 15be0bde8a
commit 3281c9b4c0

View file

@ -182,10 +182,7 @@ class Video extends React.PureComponent {
this.volume = c;
}
handleMouseDownRoot = e => {
e.preventDefault();
e.stopPropagation();
}
handleClickRoot = e => e.stopPropagation();
handlePlay = () => {
this.setState({ paused: false });
@ -578,7 +575,7 @@ class Video extends React.PureComponent {
ref={this.setPlayerRef}
onMouseEnter={this.handleMouseEnter}
onMouseLeave={this.handleMouseLeave}
onMouseDown={this.handleMouseDownRoot}
onClick={this.handleClickRoot}
onKeyDown={this.handleKeyDown}
tabIndex={0}
>