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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user