mirror of https://github.com/FreeTubeApp/FreeTube
Fix the left arrow key not working on the first button in prompts (#4816)
This commit is contained in:
parent
77df063c71
commit
d8a3ab337d
|
@ -77,7 +77,7 @@ export default defineComponent({
|
|||
focusItem: function (value) {
|
||||
let index = value
|
||||
if (index < 0) {
|
||||
index = this.promptButtons.length
|
||||
index = this.promptButtons.length - 1
|
||||
} else if (index >= this.promptButtons.length) {
|
||||
index = 0
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue