From 50b84c3e9199eadf8b34fa7eb9bd512d9b95a1aa Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Wed, 30 May 2012 21:32:44 +0200 Subject: [PATCH] Allow exiting preferences with escape if category zone is active --- deluge/ui/console/modes/preferences.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/preferences.py b/deluge/ui/console/modes/preferences.py index 6c0759710..9dbad7cf9 100644 --- a/deluge/ui/console/modes/preferences.py +++ b/deluge/ui/console/modes/preferences.py @@ -306,7 +306,8 @@ class Preferences(BaseMode): self.active_zone += 1 if self.active_zone > ZONE.ACTIONS: self.active_zone = ZONE.CATEGORIES - + elif c == 27 and self.active_zone == ZONE.CATEGORIES: + self.back_to_parent() elif c == curses.KEY_BTAB: self.active_zone -= 1 if self.active_zone < ZONE.CATEGORIES: