Minor fix

This commit is contained in:
redphx 2024-07-17 08:04:19 +07:00
parent 30421fcdba
commit 816249e9a5
2 changed files with 3 additions and 3 deletions

View File

@ -3717,7 +3717,7 @@ class StreamSettings {
this.hide();
else if (pressedButton === GamepadKey.LB || pressedButton === GamepadKey.RB) {
const $currentTab = this.$tabs.querySelector(".bx-active");
$currentTab && this.#handleTabsNavigation($currentTab, pressedButton === GamepadKey.LB ? FocusDirection.UP : FocusDirection.DOWN);
$currentTab && $currentTab.focus();
}
if (pressedButton === GamepadKey.UP)
direction = FocusDirection.UP;

View File

@ -363,9 +363,9 @@ export class StreamSettings {
} else if (pressedButton === GamepadKey.B) {
this.hide();
} else if (pressedButton === GamepadKey.LB || pressedButton === GamepadKey.RB) {
// Go to next/previous tab
// Focus setting tabs
const $currentTab = this.$tabs!.querySelector('.bx-active') as HTMLElement;
$currentTab && this.#handleTabsNavigation($currentTab, pressedButton === GamepadKey.LB ? FocusDirection.UP : FocusDirection.DOWN);
$currentTab && $currentTab.focus();
}
if (pressedButton === GamepadKey.UP) {