Mercurial > getan
changeset 310:2667bdef021f
Allow to abort deletion of entries with escape key
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 11 Oct 2013 11:40:56 +0200 |
parents | bff4877c3e58 |
children | 349b4571e120 |
files | getan/states.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/states.py Fri Oct 11 11:07:33 2013 +0200 +++ b/getan/states.py Fri Oct 11 11:40:56 2013 +0200 @@ -563,6 +563,7 @@ self.entries = [x.item for x in self.view.selection] def handle_input(self, key): + keys = self.config.get_keybinding() if 'y' in key: if self.entries: self.controller.delete_entries(self.entries) @@ -574,7 +575,7 @@ self.controller.project_view.show_total_time() return True - if 'n' in key: + if 'n' in key or keys.get_escape() in key: self.view.set_footer_text("", 'entry_footer') self.set_next_state(DefaultEntryListState(self.projectlist_state, self.controller,