mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-03 08:32:52 +00:00
@@ -5,7 +5,7 @@
|
|||||||
KEYMAP_IDS,
|
KEYMAP_IDS,
|
||||||
} from "$lib/serial/keymap-codes";
|
} from "$lib/serial/keymap-codes";
|
||||||
import FlexSearch from "flexsearch";
|
import FlexSearch from "flexsearch";
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher, onMount } from "svelte";
|
||||||
import ActionListItem from "$lib/components/ActionListItem.svelte";
|
import ActionListItem from "$lib/components/ActionListItem.svelte";
|
||||||
import LL from "../../../i18n/i18n-svelte";
|
import LL from "../../../i18n/i18n-svelte";
|
||||||
import { action } from "$lib/title";
|
import { action } from "$lib/title";
|
||||||
@@ -13,6 +13,10 @@
|
|||||||
export let currentAction: number | undefined = undefined;
|
export let currentAction: number | undefined = undefined;
|
||||||
export let nextAction: number | undefined = undefined;
|
export let nextAction: number | undefined = undefined;
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
searchBox.focus();
|
||||||
|
});
|
||||||
|
|
||||||
const index = new FlexSearch.Index({ tokenize: "full" });
|
const index = new FlexSearch.Index({ tokenize: "full" });
|
||||||
createIndex();
|
createIndex();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user