mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Allow exiting preferences with escape if category zone is active
This commit is contained in:
parent
9152d322ac
commit
50b84c3e91
1 changed files with 2 additions and 1 deletions
|
@ -306,7 +306,8 @@ class Preferences(BaseMode):
|
||||||
self.active_zone += 1
|
self.active_zone += 1
|
||||||
if self.active_zone > ZONE.ACTIONS:
|
if self.active_zone > ZONE.ACTIONS:
|
||||||
self.active_zone = ZONE.CATEGORIES
|
self.active_zone = ZONE.CATEGORIES
|
||||||
|
elif c == 27 and self.active_zone == ZONE.CATEGORIES:
|
||||||
|
self.back_to_parent()
|
||||||
elif c == curses.KEY_BTAB:
|
elif c == curses.KEY_BTAB:
|
||||||
self.active_zone -= 1
|
self.active_zone -= 1
|
||||||
if self.active_zone < ZONE.CATEGORIES:
|
if self.active_zone < ZONE.CATEGORIES:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue