Skip to content

Commit 254c001

Browse files
authored
fix: keyboard_layout default config (en-US/en_US) (#633)
1 parent 6f037a8 commit 254c001

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ var defaultConfig = &Config{
111111
ActiveExtension: "",
112112
KeyboardMacros: []KeyboardMacro{},
113113
DisplayRotation: "270",
114-
KeyboardLayout: "en-US",
114+
KeyboardLayout: "en_US",
115115
DisplayMaxBrightness: 64,
116116
DisplayDimAfterSec: 120, // 2 minutes
117117
DisplayOffAfterSec: 1800, // 30 minutes

ui/src/components/popovers/PasteModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export default function PasteModal() {
3939
state => state.setKeyboardLayout,
4040
);
4141

42-
// this ensures we always get the original en-US if it hasn't been set yet
42+
// this ensures we always get the original en_US if it hasn't been set yet
4343
const safeKeyboardLayout = useMemo(() => {
4444
if (keyboardLayout && keyboardLayout.length > 0)
4545
return keyboardLayout;
46-
return "en-US";
46+
return "en_US";
4747
}, [keyboardLayout]);
4848

4949
useEffect(() => {

ui/src/routes/devices.$id.settings.keyboard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ export default function SettingsKeyboardRoute() {
2525
state => state.setShowPressedKeys,
2626
);
2727

28-
// this ensures we always get the original en-US if it hasn't been set yet
28+
// this ensures we always get the original en_US if it hasn't been set yet
2929
const safeKeyboardLayout = useMemo(() => {
3030
if (keyboardLayout && keyboardLayout.length > 0)
3131
return keyboardLayout;
32-
return "en-US";
32+
return "en_US";
3333
}, [keyboardLayout]);
3434

3535
const layoutOptions = Object.entries(layouts).map(([code, language]) => { return { value: code, label: language } })

0 commit comments

Comments
 (0)