Fixe setting focus issues

This commit is contained in:
ward
2025-06-19 18:49:40 +12:00
parent 1067c6ee76
commit d1b2bc0c17
7 changed files with 22 additions and 10 deletions
+8
View File
@@ -4,6 +4,14 @@
<selectionStates>
<SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" />
<DropdownSelection timestamp="2025-06-19T06:43:27.548662619Z">
<Target type="DEFAULT_BOOT">
<handle>
<DeviceId pluginId="LocalEmulator" identifier="path=/home/ward/.android/avd/Television_4K.avd" />
</handle>
</Target>
</DropdownSelection>
<DialogSelection />
</SelectionState>
</selectionStates>
</component>
+2 -2
View File
@@ -7,8 +7,8 @@ android {
applicationId "us.materialio.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 128
versionName "1.9.11"
versionCode 129
versionName "1.9.12"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
@@ -63,7 +63,11 @@
<release version="1.9.11" date="2025-6-19">
<release version="1.9.12" date="2025-6-19">
<url>https://github.com/Materialious/Materialious/releases/tag/1.9.12</url>
</release>
<release version="1.9.11" date="2025-6-19">
<url>https://github.com/Materialious/Materialious/releases/tag/1.9.11</url>
</release>
<release version="1.9.10" date="2025-6-19">
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "Materialious",
"version": "1.9.11",
"version": "1.9.12",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.9.11",
"version": "1.9.12",
"private": true,
"scripts": {
"dev": "vite dev",
+4 -4
View File
@@ -174,10 +174,10 @@
isAndroidTv = (await androidTv.isAndroidTv()).value;
if (isAndroidTv) {
const mainContent = document.getElementById('main-content') as HTMLElement;
const topContent = document.getElementById('top-content') as HTMLElement;
Mousetrap.bind('down', () => {
if (!mainContent.contains(document.activeElement)) {
mainContent.focus();
if (topContent.contains(document.activeElement)) {
document.getElementById('main-content')?.focus();
return false;
}
});
@@ -250,7 +250,7 @@
</nav>
{/if}
<nav class="top">
<nav class="top" id="top-content">
{#if !mobileSearchShow}
<button
onclick={() => (mobileSearchShow = !mobileSearchShow)}
+1 -1
View File
@@ -3,7 +3,7 @@ import os
import re
from datetime import datetime
LATEST_VERSION = "1.9.11"
LATEST_VERSION = "1.9.12"
RELEASE_DATE = datetime.now().strftime("%Y-%-m-%d") # Format: YYYY-M-D
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")