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:
Airradda 2020-12-15 19:07:40 +00:00 committed by GitHub
parent 44d5b31879
commit f7c1392059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -771,12 +771,26 @@ export default Vue.extend({
// Advance to next frame
this.framebyframe(1)
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:
// esc Key
// Exit full window
event.preventDefault()
this.exitFullWindow()
break
case 83:
// S Key
// Toggle Full Window Mode
this.toggleFullWindow()
break
}
}
}