fix(key): Allow Esc and Any other input event (#173)

* fix(key): Allow Esc and input handler

* chore: set search autoFocus on shortcut component

* fix: allow enter, arrow and disable list if keyboard
This commit is contained in:
Aslam
2024-09-19 22:15:58 +07:00
committed by GitHub
parent 1a6c2ab420
commit bf5ae100ab
3 changed files with 58 additions and 50 deletions

View File

@@ -131,6 +131,7 @@ export function Shortcut() {
<form className="relative flex items-center">
<LaIcon name="Search" className="text-muted-foreground absolute left-3 size-4" />
<Input
autoFocus
placeholder="Search shortcuts"
className="border-muted-foreground/50 focus-visible:border-muted-foreground h-10 pl-10 focus-visible:ring-0"
value={searchQuery}