Add Additional Keybinds (#855)
* Reorder and resize playback rate menu Reorder playback rate from 3->0.25 to 0.25->3 and resize to include an additional visible playback rate (0.25->1.5) * Add Keybind (D) to Toggle Picture-In-Picture Mode * Revert "Reorder and resize playback rate menu" This reverts commit dacf1e9aa54e6d9d1bfe6ab79b561fd10f2b9ca3. * Added (s) keybind to toggle Full Window * Add description for (S) key * Fixed weird Git things during rebase Git injected some weird text during the rebase and duplicated a commit. Hopefully that's just my messing up the rebase and it won't happen in the future.
This commit is contained in:
parent
44d5b31879
commit
f7c1392059
|
@ -771,12 +771,26 @@ export default Vue.extend({
|
||||||
// Advance to next frame
|
// Advance to next frame
|
||||||
this.framebyframe(1)
|
this.framebyframe(1)
|
||||||
break
|
break
|
||||||
|
case 68:
|
||||||
|
// D Key
|
||||||
|
// Toggle Picture in Picture Mode
|
||||||
|
if (!this.player.isInPictureInPicture()) {
|
||||||
|
this.player.requestPictureInPicture()
|
||||||
|
} else if (this.player.isInPictureInPicture()) {
|
||||||
|
this.player.exitPictureInPicture()
|
||||||
|
}
|
||||||
|
break
|
||||||
case 27:
|
case 27:
|
||||||
// esc Key
|
// esc Key
|
||||||
// Exit full window
|
// Exit full window
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
this.exitFullWindow()
|
this.exitFullWindow()
|
||||||
break
|
break
|
||||||
|
case 83:
|
||||||
|
// S Key
|
||||||
|
// Toggle Full Window Mode
|
||||||
|
this.toggleFullWindow()
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue