File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default function SettingsKeyboardRoute() {
25
25
if ( "error" in resp ) return ;
26
26
setKeyboardLayout ( resp . result as string ) ;
27
27
} ) ;
28
- } , [ ] ) ;
28
+ } , [ send , setKeyboardLayout ] ) ;
29
29
30
30
const onKeyboardLayoutChange = useCallback (
31
31
( e : React . ChangeEvent < HTMLSelectElement > ) => {
@@ -51,7 +51,6 @@ export default function SettingsKeyboardRoute() {
51
51
/>
52
52
53
53
< div className = "space-y-4" >
54
- { /* this menu item could be renamed to plain "Keyboard layout" in the future, when also the virtual keyboard layout mappings are being implemented */ }
55
54
< SettingsItem
56
55
title = "Paste text"
57
56
description = "Keyboard layout of target operating system"
Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ export default function SettingsRoute() {
151
151
className = { ( { isActive } ) => ( isActive ? "active" : "" ) }
152
152
>
153
153
< div className = "flex items-center gap-x-2 rounded-md px-2.5 py-2.5 text-sm transition-colors hover:bg-slate-100 dark:hover:bg-slate-700 in-[.active]:bg-blue-50 in-[.active]:text-blue-700! md:in-[.active]:bg-transparent dark:in-[.active]:bg-blue-900 dark:in-[.active]:text-blue-200! dark:md:in-[.active]:bg-transparent" >
154
-
155
154
< LuMouse className = "h-4 w-4 shrink-0" />
156
155
< h1 > Mouse</ h1 >
157
156
</ div >
@@ -163,7 +162,7 @@ export default function SettingsRoute() {
163
162
to = "keyboard"
164
163
className = { ( { isActive } ) => ( isActive ? "active" : "" ) }
165
164
>
166
- < div className = "flex items-center gap-x-2 rounded-md px-2.5 py-2.5 text-sm transition-colors hover:bg-slate-100 dark:hover:bg-slate-700 [.active_& ]:bg-blue-50 [.active_&]:! text-blue-700 md:[.active_& ]:bg-transparent dark:[.active_& ]:bg-blue-900 dark:[.active_&]:! text-blue-200 dark:md:[.active_& ]:bg-transparent" >
165
+ < div className = "flex items-center gap-x-2 rounded-md px-2.5 py-2.5 text-sm transition-colors hover:bg-slate-100 dark:hover:bg-slate-700 in-[.active ]:bg-blue-50 in-[.active]: text-blue-700! md:in-[.active ]:bg-transparent dark:in-[.active ]:bg-blue-900 dark:in-[.active]: text-blue-200! dark:md:in-[.active ]:bg-transparent" >
167
166
< LuKeyboard className = "h-4 w-4 shrink-0" />
168
167
< h1 > Keyboard</ h1 >
169
168
</ div >
You can’t perform that action at this time.
0 commit comments