diff --git a/src/lib/commandCenter/panels/template.svelte b/src/lib/commandCenter/panels/template.svelte index 78dc3fe74..4065c0421 100644 --- a/src/lib/commandCenter/panels/template.svelte +++ b/src/lib/commandCenter/panels/template.svelte @@ -11,6 +11,7 @@ import { IconArrowSmRight } from '@appwrite.io/pink-icons-svelte'; import { Icon, Keyboard, Layout } from '@appwrite.io/pink-svelte'; import { Submit, trackEvent } from '$lib/actions/analytics'; + import type { Action } from 'svelte/action'; /* eslint no-undef: "off" */ type Option = $$Generic & { group?: string }>; @@ -247,6 +248,10 @@ return isGroup(nextItem) || !nextItem?.nested; }; + + const autofocus: Action = (node) => { + if (node) node.focus(); + }; @@ -271,8 +276,11 @@ @@ -305,7 +313,7 @@ on:mouseleave={getOptionBlurHandler()} on:focus={getOptionFocusHandler(item)}> - + {#if item.icon}