diff options
author | bx <bx@localhost> | 2016-09-01 14:41:03 -0400 |
---|---|---|
committer | bx <bx@localhost> | 2016-09-01 14:41:03 -0400 |
commit | 1351d173c25c2c4b78bd197dd3ff0a903b96f3f0 (patch) | |
tree | 178186988d8155fb649ff02b567455a9a5e3ea82 | |
parent | 747b894bbe2156bae2c1f128ec0b4344d7c28378 (diff) |
add ctrl-g keybinding to cancel prompt
-rw-r--r-- | alot/widgets/globals.py | 2 |
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': |