mirror of
https://github.com/alyssaxuu/omni.git
synced 2026-03-11 08:54:35 +00:00
Merge pull request #35 from samostanek/master
fix: Correct display of shortcuts on non-mac devices
This commit is contained in:
commit
6bfe35c004
1 changed files with 5 additions and 5 deletions
|
|
@ -73,7 +73,7 @@ const clearActions = () => {
|
|||
];
|
||||
|
||||
if (!isMac) {
|
||||
for (action in actions) {
|
||||
for (action of actions) {
|
||||
switch (action.action) {
|
||||
case "reload":
|
||||
action.keys = ['F5'];
|
||||
|
|
@ -104,10 +104,10 @@ const clearActions = () => {
|
|||
break;
|
||||
}
|
||||
for (const key in action.keys) {
|
||||
if (key === "⌘") {
|
||||
key = "Ctrl";
|
||||
} else if (key === "⌥") {
|
||||
key = "Alt";
|
||||
if (action.keys[key] === "⌘") {
|
||||
action.keys[key] = "Ctrl";
|
||||
} else if (action.keys[key] === "⌥") {
|
||||
action.keys[key] = "Alt";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue