Skip to content

Commit 9077ef1

Browse files
authored
feat: don't change keyboard geometry if it's not needed (#172)
1 parent 3be2840 commit 9077ef1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/page-practice/lib/settings/KeyboardSettings.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ function LayoutProp(): ReactNode {
8181
value={options.language.id}
8282
onSelect={(id) => {
8383
updateSettings(
84-
options.withLanguage(Language.ALL.get(id)).save(settings),
84+
options
85+
.withLanguage(Language.ALL.get(id))
86+
.withGeometry(options.geometry)
87+
.save(settings),
8588
);
8689
}}
8790
/>
@@ -101,7 +104,10 @@ function LayoutProp(): ReactNode {
101104
value={options.layout.id}
102105
onSelect={(id) => {
103106
updateSettings(
104-
options.withLayout(Layout.ALL.get(id)).save(settings),
107+
options
108+
.withLayout(Layout.ALL.get(id))
109+
.withGeometry(options.geometry)
110+
.save(settings),
105111
);
106112
}}
107113
/>

0 commit comments

Comments
 (0)