feat(search): add autofocus to search input and emit focus event on shortcut

- Added autofocus attribute to the search input field for improved user experience.
- Updated global shortcut handling to emit a "focus-search" event when the shortcut is triggered, enhancing the application's responsiveness to user actions.
- Updated dependencies in Cargo.toml to specific beta versions for better compatibility.
This commit is contained in:
2025-04-13 21:57:36 +02:00
parent 7af536bd9c
commit b97cf63484
3 changed files with 15 additions and 9 deletions

View File

@@ -141,6 +141,7 @@ function App() {
value={searchQuery()}
onInput={onInputChange}
placeholder="Search for stuff..."
autofocus
class="appearance-none inline-flex w-full min-h-[40px] text-base bg-transparent rounded-l-md outline-none placeholder:text-gray-600"
/>
</div>