Skip to content

Commit

Permalink
Add button to clear hotkey row (OpenStickCommunity#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelsin authored Aug 6, 2024
1 parent 3826b1b commit f4ab4ab
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions www/src/Pages/SettingsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,21 @@ export default function SettingsPage() {
{errors[o] && errors[o]?.action}
</Form.Control.Feedback>
</Col>
{Boolean(
values[o]?.buttonsMask || values[o]?.action,
) && (
<Col>
<Button
size="sm"
onClick={() => {
setFieldValue(`${o}.action`, 0);
setFieldValue(`${o}.buttonsMask`, 0);
}}
>
{'✕'}
</Button>
</Col>
)}
</Form.Group>
))}
</div>
Expand Down

0 comments on commit f4ab4ab

Please sign in to comment.