From 75c4135d6e1a7be331a50efce972641b12cee19a Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Fri, 20 Jul 2012 22:04:11 +0200 Subject: [PATCH] Made delete key open up the delete torrent dialog in view torrent detail mode --- deluge/ui/console/modes/torrentdetail.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/console/modes/torrentdetail.py b/deluge/ui/console/modes/torrentdetail.py index f115199d0..5c74cdb50 100644 --- a/deluge/ui/console/modes/torrentdetail.py +++ b/deluge/ui/console/modes/torrentdetail.py @@ -886,6 +886,8 @@ class TorrentDetail(BaseMode, component.Component): elif c == curses.KEY_END: self.current_file_idx = self.__get_file_list_length() - 1 self.file_off = self.current_file_idx - (self._listing_space - 3) + elif c == curses.KEY_DC: + torrent_actions_popup(self, [self.torrentid], action=ACTION.REMOVE) # Enter Key elif c == curses.KEY_ENTER or c == 10: was_empty = (self.marked == {})