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") {
|
if (e.key?.toLowerCase() === "control") {
|
||||||
fixedKey = "Ctrl";
|
fixedKey = "Ctrl";
|
||||||
}
|
}
|
||||||
|
if (e.key?.toLowerCase() === "meta") {
|
||||||
|
fixedKey = "Command";
|
||||||
|
}
|
||||||
setKey((oldKey) =>
|
setKey((oldKey) =>
|
||||||
getFixedCombination({ oldKey: oldKey!, key: fixedKey }),
|
getFixedCombination({ oldKey: oldKey!, key: fixedKey }),
|
||||||
);
|
);
|
||||||
|
|
@ -152,7 +155,9 @@ export default function EditShortcutButton({
|
||||||
</div>
|
</div>
|
||||||
</BaseModal.Content>
|
</BaseModal.Content>
|
||||||
<BaseModal.Footer>
|
<BaseModal.Footer>
|
||||||
<Button onClick={editCombination}>Edit Combination</Button>
|
<Button variant={"secondary"} onClick={editCombination}>
|
||||||
|
Edit Combination
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
className="mr-5"
|
className="mr-5"
|
||||||
variant={"destructive"}
|
variant={"destructive"}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue