Opened 6 years ago
Last modified 5 years ago
#5857 new Enhancement
Web client - keyboard shortcuts
Reported by: | jasonM23 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | None Set |
Component: | Web Client | Version: | 2.84 |
Severity: | Normal | Keywords: | key control |
Cc: |
Description
I've made a patch to transmission.js which adds keycode handling for a few commands.
- stop (s) / resume (r) selected torrents
- select all (a) torrents
- info (i) panel
- verify (v) selected torrents
- move (m) selected torrents
- remove (del/backspace/d) selected torrents
- open (o) new torrent
- confirm dialog (enter)
- cancel dialog (esc)
- toggle prefs (, - comma)
- toggle turtle (t)
Not sure where I can send this code,
Attachments (2)
Change History (12)
Changed 6 years ago by jasonM23
comment:1 Changed 6 years ago by jasonM23
I've noticed that controls containing text inputs require the key mapping to be modal, so I'll update this patch in the coming days / week.
comment:2 Changed 6 years ago by jasonM23
Patch updated, added a condition to disable key bindings other than Enter / Esc when in a dialog
comment:3 Changed 6 years ago by mike.dld
@jasonM23, could you please attach the patch with different name than the original? Unfortunately, it cannot pass through moderation otherwise.
comment:4 Changed 6 years ago by jasonM23
That would invalidate the patch unfortunately... the only thing I can do is grzip it, so that it is .patch.gz
comment:5 Changed 6 years ago by jasonM23
Also available via github as a drop in replacement for transmission.js
comment:6 Changed 6 years ago by mike.dld
Conflicts with #5504 which adds similar functionality.
comment:7 Changed 6 years ago by jasonM23
#5504 adds a single shortcut to add a new torrent.
This patch provides an almost complete keyboard interface.
comment:8 Changed 6 years ago by mike.dld
What I meant with previous comment is that it does what it does in a different way than you do. And I must say that I like that way better than yours which compares element text to "Upload Torrent Files" (user-visible text is never to be used as identifier). Maybe you could change it so that element class or id is checked instead?
comment:9 Changed 5 years ago by bono178
Hello, I am very interested in this enhancement. Can you explain how to install it? I'm currently running transmission daemon on a raspberry pi and controlling it via my browser with the web interface. Thanks Jean
comment:10 Changed 5 years ago by enricostn
Can we add dialog key bindings to dialog.js?
Simplistic patch file for adding key commands to transmission web client.