Skip to content

Commit

Permalink
Use Cmd key for shortcuts on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
6c65726f79 committed Mar 2, 2022
1 parent 148fa6e commit a19ddf7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,24 +247,24 @@ In this case, the remote server IP is `192.168.1.1`, and the folder `/mnt/ssd` m

# Keyboard shortcuts

| Keys | Action |
| --------------- | -------------------- |
| Alt+T | Open torrent |
| Alt+M | Open magnet |
| Alt+U | Open URL |
| Alt+S | Settings |
| Alt+N | New server |
| Alt+I | Server information |
| Alt+C | Server configuration |
| Alt+A | About |
| Alt+[1-9] | Select filter |
| Ctrl+Alt+S | Search |
| Ctrl+Alt+T | Toggle side menu |
| Ctrl+RightArrow | Next tab |
| Ctrl+LeftArrow | Previous tab |
| Shift+Click | Select torrent |
| Ctrl+A | Select all |
| Esc | Cancel selection |
| Keys | Action |
| ----------------------- | -------------------- |
| `Alt` `T` | Open torrent |
| `Alt` `M` | Open magnet |
| `Alt` `U` | Open URL |
| `Alt` `S` | Settings |
| `Alt` `N` | New server |
| `Alt` `I` | Server information |
| `Alt` `C` | Server configuration |
| `Alt` `A` | About |
| `Alt` `1`-`9` | Select filter |
| `Cmd/Ctrl` `Alt` `S` | Search |
| `Cmd/Ctrl` `Alt` `T` | Toggle side menu |
| `Cmd/Ctrl` `RightArrow` | Next tab |
| `Cmd/Ctrl` `LeftArrow` | Previous tab |
| `Shift` `Click` | Select torrent |
| `Ctrl` `A` | Select all |
| `Esc` | Cancel selection |

# Build

Expand Down
2 changes: 1 addition & 1 deletion src/services/Shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const Shortcuts = {
isKeyPressed = {"ctrl":false,"alt":false};
}
if(event.key!="Control" && event.key!="Alt"){
isKeyPressed["ctrl"] = event.ctrlKey;
isKeyPressed["ctrl"] = event.ctrlKey || event.metaKey;
isKeyPressed["alt"] = event.altKey;
isKeyPressed[event.key] = pressed;
if(pressed){
Expand Down

0 comments on commit a19ddf7

Please sign in to comment.