mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 00:18:39 +00:00
Map delete key to remove torrent(s) dialog
This commit is contained in:
parent
acb77213e1
commit
8dc5b07818
1 changed files with 6 additions and 1 deletions
|
@ -49,7 +49,7 @@ from add_util import add_torrent
|
||||||
from input_popup import InputPopup
|
from input_popup import InputPopup
|
||||||
from torrentdetail import TorrentDetail
|
from torrentdetail import TorrentDetail
|
||||||
from preferences import Preferences
|
from preferences import Preferences
|
||||||
from torrent_actions import torrent_actions_popup
|
from torrent_actions import torrent_actions_popup, ACTION
|
||||||
from eventview import EventView
|
from eventview import EventView
|
||||||
from legacy import Legacy
|
from legacy import Legacy
|
||||||
|
|
||||||
|
@ -909,6 +909,11 @@ class AllTorrents(BaseMode, component.Component):
|
||||||
self._scroll_up(self.cursel)
|
self._scroll_up(self.cursel)
|
||||||
elif c == curses.KEY_END:
|
elif c == curses.KEY_END:
|
||||||
self._scroll_down(self.numtorrents-self.cursel)
|
self._scroll_down(self.numtorrents-self.cursel)
|
||||||
|
elif c == curses.KEY_DC:
|
||||||
|
if self.cursel not in self.marked:
|
||||||
|
self.marked.append(self.cursel)
|
||||||
|
self.last_mark = self.cursel
|
||||||
|
torrent_actions_popup(self,self._selected_torrent_ids(), action=ACTION.REMOVE)
|
||||||
|
|
||||||
elif c == curses.KEY_RIGHT:
|
elif c == curses.KEY_RIGHT:
|
||||||
# We enter a new mode for the selected torrent here
|
# We enter a new mode for the selected torrent here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue