Skip to content

Commit

Permalink
Fix rendering of non-"keyboard" keypicker entries
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Feb 7, 2024
1 parent 04a0628 commit 60ee2f9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/renderer/screens/Editor/components/KeyPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,16 @@ export const KeyPicker = (props) => {
<Tab value="advanced" label="Advanced" />
</TabList>
</Box>
<TabPanel
value="keyboard"
sx={{
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<Keyboard104 onKeySelect={onKeyChange} currentKeyCode={key.baseCode || key.code} keymap={keymap} />
<TabPanel value="keyboard">
<Box
sx={{
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<Keyboard104 onKeySelect={onKeyChange} currentKeyCode={key.baseCode || key.code} keymap={keymap} />
</Box>
</TabPanel>
<TabPanel value="modifiers">
<Grid container spacing={0}>
Expand Down

0 comments on commit 60ee2f9

Please sign in to comment.