From bbdf710b523ed08178656a3b1adaa15d69897db0 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Wed, 30 May 2012 22:27:24 +0200 Subject: [PATCH] Another search behaviour change: Enter now opens torrent menu and '/' closes search(as it cannot occur in torrent name anyway) --- deluge/ui/console/modes/alltorrents.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index bbafec8d5..93b51e114 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -981,6 +981,11 @@ class AllTorrents(BaseMode, component.Component): self.search_state = SEARCH_EMPTY self.refresh([]) + elif c == ord('/'): + self.entering_search = False + self.search_state = SEARCH_EMPTY + self.refresh([]) + elif c == curses.KEY_RIGHT: tid = self.current_torrent_id() self.show_torrent_details(tid) @@ -994,8 +999,9 @@ class AllTorrents(BaseMode, component.Component): self.refresh([]) elif c in [10, curses.KEY_ENTER]: - self.entering_search = False - self.refresh([]) + self.last_mark = -1 + tid = self.current_torrent_id() + torrent_actions_popup(self, [tid] ,details=True) elif c == 27: self.search_string = ""