Switch debug and picture in picture shortcuts for consistency (#2141)
* Switch debug and picture in picture shortcuts for consistency * Add preventDefault to statsmodal shortcut
This commit is contained in:
parent
884e0967df
commit
6559732207
|
@ -1568,7 +1568,12 @@ export default Vue.extend({
|
||||||
case 73:
|
case 73:
|
||||||
// I Key
|
// I Key
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
this.toggleShowStatsModal()
|
// Toggle Picture in Picture Mode
|
||||||
|
if (!this.player.isInPictureInPicture()) {
|
||||||
|
this.player.requestPictureInPicture()
|
||||||
|
} else if (this.player.isInPictureInPicture()) {
|
||||||
|
this.player.exitPictureInPicture()
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case 49:
|
case 49:
|
||||||
// 1 Key
|
// 1 Key
|
||||||
|
@ -1642,12 +1647,8 @@ export default Vue.extend({
|
||||||
break
|
break
|
||||||
case 68:
|
case 68:
|
||||||
// D Key
|
// D Key
|
||||||
// Toggle Picture in Picture Mode
|
event.preventDefault()
|
||||||
if (!this.player.isInPictureInPicture()) {
|
this.toggleShowStatsModal()
|
||||||
this.player.requestPictureInPicture()
|
|
||||||
} else if (this.player.isInPictureInPicture()) {
|
|
||||||
this.player.exitPictureInPicture()
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
case 27:
|
case 27:
|
||||||
// esc Key
|
// esc Key
|
||||||
|
|
Loading…
Reference in New Issue