ui: accept 'q' as quit character

'q' is a standard character used in traditional UNIX environment
for 'quit', so it makes sense to support it in my opinion
This commit is contained in:
Romans Volosatovs
2016-06-25 12:08:27 +02:00
parent 42853f41bb
commit 01418526b4
2 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ def read_actions():
yield const.ACTION_PREVIOUS
elif key in (const.KEY_DOWN, 'j'):
yield const.ACTION_NEXT
elif key == const.KEY_CTRL_C:
elif key in (const.KEY_CTRL_C, 'q'):
yield const.ACTION_ABORT
elif key in ('\n', '\r'):
yield const.ACTION_SELECT