Mercurial > getan
changeset 105:4bf17975acca
Also move back to ProjectListState if esc is pressed not only when tab
Move back from DefaultEntryListState also when pressing esc
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 12 Sep 2011 14:35:57 +0200 |
parents | 36204a42bd79 |
children | a0779fb2ef4d |
files | getan/states.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/states.py Mon Sep 12 14:32:20 2011 +0200 +++ b/getan/states.py Mon Sep 12 14:35:57 2011 +0200 @@ -398,6 +398,10 @@ if ret: return ret + if 'esc' in key: + self.view.clear() + return self.projectlist_state + if 'd' in key: if self.view.selection: return DeleteEntryState(self.projectlist_state,