mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix shiftKey for player hotkeys
This commit is contained in:
parent
0372ff0c2c
commit
eac0a52f10
1 changed files with 4 additions and 4 deletions
|
@ -99,7 +99,7 @@ var player = videojs("player", options, function() {
|
||||||
return e.which === 74;
|
return e.which === 74;
|
||||||
},
|
},
|
||||||
handler: function(player, options, e) {
|
handler: function(player, options, e) {
|
||||||
player.currentTime(player.currentTime() - 5);
|
player.currentTime(player.currentTime() - 10);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Go forward 5 seconds
|
// Go forward 5 seconds
|
||||||
|
@ -108,13 +108,13 @@ var player = videojs("player", options, function() {
|
||||||
return e.which === 76;
|
return e.which === 76;
|
||||||
},
|
},
|
||||||
handler: function(player, options, e) {
|
handler: function(player, options, e) {
|
||||||
player.currentTime(player.currentTime() + 5);
|
player.currentTime(player.currentTime() + 10);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Increase speed
|
// Increase speed
|
||||||
increase_speed: {
|
increase_speed: {
|
||||||
key: function(e) {
|
key: function(e) {
|
||||||
return e.which === 190;
|
return (e.which === 190 && e.shiftKey);
|
||||||
},
|
},
|
||||||
handler: function(player, _, e) {
|
handler: function(player, _, e) {
|
||||||
size = options.playbackRates.length;
|
size = options.playbackRates.length;
|
||||||
|
@ -125,7 +125,7 @@ var player = videojs("player", options, function() {
|
||||||
// Decrease speed
|
// Decrease speed
|
||||||
decrease_speed: {
|
decrease_speed: {
|
||||||
key: function(e) {
|
key: function(e) {
|
||||||
return e.which === 188;
|
return (e.which === 188 && e.shiftKey);
|
||||||
},
|
},
|
||||||
handler: function(player, _, e) {
|
handler: function(player, _, e) {
|
||||||
size = options.playbackRates.length;
|
size = options.playbackRates.length;
|
||||||
|
|
Loading…
Reference in a new issue