mirror of
https://github.com/Radarr/Radarr
synced 2025-02-22 06:11:09 +00:00
Fixed: TypeError on Keyup in Firefox for MovieIndex and Details
This commit is contained in:
parent
4c19fa0d05
commit
e104a9e261
2 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ class MovieDetails extends Component {
|
|||
}
|
||||
|
||||
onKeyUp = (event) => {
|
||||
if (event.path.length === 4) {
|
||||
if (event.composedPath && event.composedPath().length === 4) {
|
||||
if (event.keyCode === keyCodes.LEFT_ARROW) {
|
||||
this.props.onGoToMovie(this.props.previousMovie.titleSlug);
|
||||
}
|
||||
|
|
|
@ -246,7 +246,7 @@ class MovieIndex extends Component {
|
|||
|
||||
onKeyUp = (event) => {
|
||||
const jumpBarItems = this.state.jumpBarItems.order;
|
||||
if (event.path.length === 4) {
|
||||
if (event.composedPath && event.composedPath().length === 4) {
|
||||
if (event.keyCode === keyCodes.HOME && event.ctrlKey) {
|
||||
this.setState({ jumpToCharacter: jumpBarItems[0] });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue