mirror of
https://github.com/Radarr/Radarr
synced 2024-12-23 08:22:39 +00:00
Fix issue with arrow keys switching movie when using them inside a textbox (or any element really)
This commit is contained in:
parent
081fe64bff
commit
cf804f7dac
1 changed files with 7 additions and 5 deletions
|
@ -177,11 +177,13 @@ class MovieDetails extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
onKeyUp = (event) => {
|
onKeyUp = (event) => {
|
||||||
if (event.keyCode === keyCodes.LEFT_ARROW) {
|
if (event.path.length === 4) {
|
||||||
this.props.onGoToMovie(this.props.previousMovie.titleSlug);
|
if (event.keyCode === keyCodes.LEFT_ARROW) {
|
||||||
}
|
this.props.onGoToMovie(this.props.previousMovie.titleSlug);
|
||||||
if (event.keyCode === keyCodes.RIGHT_ARROW) {
|
}
|
||||||
this.props.onGoToMovie(this.props.nextMovie.titleSlug);
|
if (event.keyCode === keyCodes.RIGHT_ARROW) {
|
||||||
|
this.props.onGoToMovie(this.props.nextMovie.titleSlug);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue