[Getan-commits] [PATCH 15 of 32] Allow to abort deletion of entries with escape key
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 11 14:33:59 CEST 2013
# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1381484456 -7200
# Node ID 2667bdef021f02acd976e60315a1dce24b8d58a4
# Parent bff4877c3e583aedd1faf6ca168c86f808cf7608
Allow to abort deletion of entries with escape key
diff -r bff4877c3e58 -r 2667bdef021f getan/states.py
--- 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,
More information about the Getan-commits
mailing list