Skip to content

Commit

Permalink
feat: don't change keyboard geometry if it's not needed (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
mibac138 authored Apr 14, 2024
1 parent 3be2840 commit 9077ef1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/page-practice/lib/settings/KeyboardSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ function LayoutProp(): ReactNode {
value={options.language.id}
onSelect={(id) => {
updateSettings(
options.withLanguage(Language.ALL.get(id)).save(settings),
options
.withLanguage(Language.ALL.get(id))
.withGeometry(options.geometry)
.save(settings),
);
}}
/>
Expand All @@ -101,7 +104,10 @@ function LayoutProp(): ReactNode {
value={options.layout.id}
onSelect={(id) => {
updateSettings(
options.withLayout(Layout.ALL.get(id)).save(settings),
options
.withLayout(Layout.ALL.get(id))
.withGeometry(options.geometry)
.save(settings),
);
}}
/>
Expand Down

0 comments on commit 9077ef1

Please sign in to comment.