Media Viewer: Prevent scrolling Message List with <Space> key (#1240)
This commit is contained in:
parent
5facc1e705
commit
92d1a3da23
@ -127,6 +127,7 @@ const VideoPlayer: FC<OwnProps> = ({
|
||||
useEffect(() => {
|
||||
const togglePayingStateBySpace = (e: KeyboardEvent) => {
|
||||
if (e.key === 'Enter' || e.key === ' ') {
|
||||
e.preventDefault();
|
||||
togglePlayState(e);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user