mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user