use Meta instead of Command

This commit is contained in:
an-lee
2024-01-10 21:40:09 +08:00
parent b484305a7c
commit c813a53a1e

View File

@@ -21,9 +21,11 @@ function App() {
});
});
const ControlOrCommand = navigator.platform.includes("Mac") ? "Meta" : "Control";
const ControlOrCommand = navigator.platform.includes("Mac")
? "Meta"
: "Control";
useHotkeys(`${ControlOrCommand}+,`, () => {
useHotkeys(`${ControlOrCommand}+Comma`, () => {
document.getElementById("preferences-button")?.click();
});