mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: TypeError on Keyup in Firefox for MovieIndex and Details
This commit is contained in:
parent
4c19fa0d05
commit
e104a9e261
@ -178,7 +178,7 @@ class MovieDetails extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onKeyUp = (event) => {
|
onKeyUp = (event) => {
|
||||||
if (event.path.length === 4) {
|
if (event.composedPath && event.composedPath().length === 4) {
|
||||||
if (event.keyCode === keyCodes.LEFT_ARROW) {
|
if (event.keyCode === keyCodes.LEFT_ARROW) {
|
||||||
this.props.onGoToMovie(this.props.previousMovie.titleSlug);
|
this.props.onGoToMovie(this.props.previousMovie.titleSlug);
|
||||||
}
|
}
|
||||||
|
@ -246,7 +246,7 @@ class MovieIndex extends Component {
|
|||||||
|
|
||||||
onKeyUp = (event) => {
|
onKeyUp = (event) => {
|
||||||
const jumpBarItems = this.state.jumpBarItems.order;
|
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) {
|
if (event.keyCode === keyCodes.HOME && event.ctrlKey) {
|
||||||
this.setState({ jumpToCharacter: jumpBarItems[0] });
|
this.setState({ jumpToCharacter: jumpBarItems[0] });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user