diff --git a/package.json b/package.json index 5adc6b4..f7d3f71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "6.4.78", + "version": "6.4.79", "license": "BUSL-1.1", "private": true, "packageManager": "pnpm@9.15.5", diff --git a/src/lib/components/ui/player/keybinds.svelte b/src/lib/components/ui/player/keybinds.svelte index 71d0567..effcbe9 100644 --- a/src/lib/components/ui/player/keybinds.svelte +++ b/src/lib/components/ui/player/keybinds.svelte @@ -28,7 +28,7 @@ async function runBind (e: MouseEvent | KeyboardEvent, code: KeyCode) { const kbn = get(binds) - if (cnd(code)) kbn[layout[code] ?? code]?.fn(e) + if (cnd(code)) kbn[layout[code] ?? code]?.fn?.(e) } export function loadWithDefaults (defaults: Partial>) { diff --git a/src/lib/modules/navigate.ts b/src/lib/modules/navigate.ts index 9427b69..7a794a8 100644 --- a/src/lib/modules/navigate.ts +++ b/src/lib/modules/navigate.ts @@ -160,7 +160,7 @@ function getDistance (anchor: ElementPosition, relative: ElementPosition) { * Gets keyboard-focusable elements within a specified element. */ function getKeyboardFocusableElements (element: Element = document.body) { - return [...element.querySelectorAll('a[href]:not([disabled], [tabindex="-1"]), button:not([disabled], [tabindex="-1"]), fieldset:not([disabled]), input:not([disabled], [readonly]), optgroup:not([disabled]), option:not([disabled]), select:not([disabled]), textarea:not([disabled]), details, [tabindex]:not([tabindex="-1"], [disabled]), [contenteditable], [controls]')].filter( + return [...element.querySelectorAll('a[href]:not([disabled=""], [disabled="true"], [tabindex="-1"]), button:not([disabled=""], [disabled="true"], [tabindex="-1"]), fieldset:not([disabled=""], [disabled="true"]), input:not([disabled=""], [disabled="true"], [readonly]), optgroup:not([disabled=""], [disabled="true"]), option:not([disabled=""], [disabled="true"]), select:not([disabled=""], [disabled="true"]), textarea:not([disabled=""], [disabled="true"]), details, [tabindex]:not([tabindex="-1"], [disabled=""], [disabled="true"]), [contenteditable], [controls]')].filter( el => !el.getAttribute('aria-hidden') ) } diff --git a/src/routes/setup/+page.svelte b/src/routes/setup/+page.svelte index c2f817a..5cc99f9 100644 --- a/src/routes/setup/+page.svelte +++ b/src/routes/setup/+page.svelte @@ -20,10 +20,10 @@
Let's set up your perfect streaming environment.
- +