Android build v1.1.12
This commit is contained in:
@@ -349,6 +349,7 @@ function changeSelectOption(select: HTMLSelectElement, direction: -1 | 1) {
|
||||
}
|
||||
|
||||
export function focusFirstControl() {
|
||||
if (hasDedicatedGameNavigation()) return null
|
||||
const first = focusableElements()[0]
|
||||
if (first) focusControl(first)
|
||||
return first
|
||||
@@ -611,6 +612,7 @@ export function InputProvider({ children }: { children: ReactNode }) {
|
||||
document.documentElement.dataset.inputDevice = device
|
||||
|
||||
if (controllerUiInput && dedicatedNavAction && hasDedicatedGameNavigation()) {
|
||||
if (document.activeElement instanceof HTMLElement) document.activeElement.blur()
|
||||
dispatchGameAction(action, device)
|
||||
return
|
||||
}
|
||||
@@ -810,6 +812,7 @@ export function InputProvider({ children }: { children: ReactNode }) {
|
||||
focusFrame = 0
|
||||
const combatActive = document.querySelector('[data-combat-active="true"]')
|
||||
if (combatActive) return
|
||||
if (hasDedicatedGameNavigation()) return
|
||||
const candidates = focusableElements()
|
||||
const activeControl = currentFocusableControl(candidates)
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user