summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2016-10-19 14:24:46 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2016-10-19 14:24:46 +0100
commit1b4abe0b3c70457044c3ddaab7f023c415a3f889 (patch)
treebce90138d56ff51d34f2c0a6a79ffaa180c878e2
parent012cfc90f00109b56cea239aa8d02ff9cd8f1583 (diff)
parentebf9485765320ef26a58880553ec29ed4798875c (diff)
Merge branch 'master' of github.com:pazz/alot
-rw-r--r--alot/widgets/globals.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py
index 50fc032f..b72c742e 100644
--- a/alot/widgets/globals.py
+++ b/alot/widgets/globals.py
@@ -84,7 +84,7 @@ class CompleteEdit(urwid.Edit):
The interpretation of some keypresses is hard-wired:
:enter: calls 'on_exit' callback with current value
- :esc: calls 'on_exit' with value `None`, which can be interpreted
+ :esc/ctrl g: calls 'on_exit' with value `None`, which can be interpreted
as cancelation
:tab: calls the completer and tabs forward in the result list
:shift tab: tabs backward in the result list
@@ -168,7 +168,7 @@ class CompleteEdit(urwid.Edit):
self.set_edit_text(self.history[self.historypos])
elif key == 'enter':
self.on_exit(self.edit_text)
- elif key == 'esc':
+ elif key in ('ctrl g', 'esc'):
self.on_exit(None)
elif key == 'ctrl a':
self.set_edit_pos(0)