@@ -2,6 +2,7 @@ import { Button } from "@/components/ui/button";
22import { Card , CardContent , CardDescription , CardHeader , CardTitle } from "@/components/ui/card" ;
33import { KbdInput } from "@/components/ui/kbd-input" ;
44import { Label } from "@/components/ui/label" ;
5+ import { Switch } from "@/components/ui/switch" ;
56import { useSettings } from "@/features/settings/hooks/use-settings" ;
67import { toast } from "sonner" ;
78import { useTranslation } from "react-i18next" ;
@@ -24,10 +25,26 @@ export function KeyboardTab() {
2425 < CardHeader >
2526 < CardTitle > { t ( "settings.keyboard.shortcuts.title" ) } </ CardTitle >
2627 < CardDescription >
27- Configure the key combinations for quick interactions.
28+ { t ( "settings.keyboard.shortcuts.description" ) }
2829 </ CardDescription >
2930 </ CardHeader >
3031 < CardContent className = "grid gap-4" >
32+ < div className = "flex items-center justify-between gap-4 rounded-lg border bg-muted/40 px-4 py-3" >
33+ < div className = "space-y-1" >
34+ < p className = "text-sm font-medium" >
35+ { t ( "settings.keyboard.shortcuts.enable_label" ) }
36+ </ p >
37+ < p className = "text-xs text-muted-foreground" >
38+ { t ( "settings.keyboard.shortcuts.enable_helper" ) }
39+ </ p >
40+ </ div >
41+ < Switch
42+ checked = { settings . keyboard . enabled }
43+ onCheckedChange = { ( checked ) =>
44+ updateKeyboard ( { enabled : checked } )
45+ }
46+ />
47+ </ div >
3148 < div className = "grid gap-2" >
3249 < Label htmlFor = "shortcut-quick" > { t ( "settings.keyboard.shortcuts.quick_query" ) } </ Label >
3350 < KbdInput
0 commit comments