Fix: Change Meta key to command for mac users
This commit is contained in:
parent
0d09ca236e
commit
1cfc3f4033
1 changed files with 6 additions and 1 deletions
|
|
@ -121,6 +121,9 @@ export default function EditShortcutButton({
|
|||
if (e.key?.toLowerCase() === "control") {
|
||||
fixedKey = "Ctrl";
|
||||
}
|
||||
if (e.key?.toLowerCase() === "meta") {
|
||||
fixedKey = "Command";
|
||||
}
|
||||
setKey((oldKey) =>
|
||||
getFixedCombination({ oldKey: oldKey!, key: fixedKey }),
|
||||
);
|
||||
|
|
@ -152,7 +155,9 @@ export default function EditShortcutButton({
|
|||
</div>
|
||||
</BaseModal.Content>
|
||||
<BaseModal.Footer>
|
||||
<Button onClick={editCombination}>Edit Combination</Button>
|
||||
<Button variant={"secondary"} onClick={editCombination}>
|
||||
Edit Combination
|
||||
</Button>
|
||||
<Button
|
||||
className="mr-5"
|
||||
variant={"destructive"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue