mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix preventDefault() being called on *all* keys
This commit is contained in:
@ -194,12 +194,13 @@ function setupLocalArrowShortcuts(options) {
|
||||
}
|
||||
|
||||
function callback(event) {
|
||||
event.preventDefault();
|
||||
switch (event.code) {
|
||||
case "ArrowUp":
|
||||
event.preventDefault();
|
||||
changeVolume(true, options);
|
||||
break;
|
||||
case "ArrowDown":
|
||||
event.preventDefault();
|
||||
changeVolume(false, options);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user