use Meta instead of Command
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user