diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-05 22:14:28 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-05 22:14:28 +0100 |
commit | f33541bc003c1d7e4ded26c6565557ab1444f08f (patch) | |
tree | a365e86763626111de276cf9a758bc79bd54d74c /alot/command.py | |
parent | 3aa7307a32bd6b2dec3002afc5e07f4a0e8c4587 (diff) |
direct global commands for cancel and select
Diffstat (limited to 'alot/command.py')
-rw-r--r-- | alot/command.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alot/command.py b/alot/command.py index 14fe34c6..0744a19f 100644 --- a/alot/command.py +++ b/alot/command.py @@ -1103,6 +1103,8 @@ COMMANDS = { }, 'global': { 'move': (SendKeypressCommand, {}), + 'cancel': (SendKeypressCommand, {'key': 'cancel'}), + 'select': (SendKeypressCommand, {'key': 'select'}), 'sendkey': (SendKeypressCommand, {}), 'bnext': (BufferFocusCommand, {'offset': 1}), 'bprevious': (BufferFocusCommand, {'offset': -1}), @@ -1230,7 +1232,7 @@ def interpret_commandline(cmdline, mode): 'refresh', 'bufferlist', 'refineprompt', 'reply', 'open', 'groupreply', 'bounce', 'openthread', 'toggleheaders', 'send', - 'reedit', 'select', 'retagprompt']: + 'cancel', 'reedit', 'select', 'retagprompt']: return commandfactory(cmd, mode=mode) else: return None |