summaryrefslogtreecommitdiff
path: root/alot/widgets/globals.py
diff options
context:
space:
mode:
authorbx <bx@localhost>2016-09-01 14:41:03 -0400
committerbx <bx@localhost>2016-09-01 14:41:03 -0400
commit1351d173c25c2c4b78bd197dd3ff0a903b96f3f0 (patch)
tree178186988d8155fb649ff02b567455a9a5e3ea82 /alot/widgets/globals.py
parent747b894bbe2156bae2c1f128ec0b4344d7c28378 (diff)
add ctrl-g keybinding to cancel prompt
Diffstat (limited to 'alot/widgets/globals.py')
-rw-r--r--alot/widgets/globals.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py
index 50fc032f..b636a3af 100644
--- a/alot/widgets/globals.py
+++ b/alot/widgets/globals.py
@@ -170,6 +170,8 @@ class CompleteEdit(urwid.Edit):
self.on_exit(self.edit_text)
elif key == 'esc':
self.on_exit(None)
+ elif key == 'ctrl g':
+ self.on_exit(None)
elif key == 'ctrl a':
self.set_edit_pos(0)
elif key == 'ctrl e':