Support escape or up-arrow to cancel the completion search field.

This commit is contained in:
ridiculousfish
2014-01-27 02:17:31 -08:00
parent 5be3606236
commit 7d8766980b
6 changed files with 55 additions and 45 deletions

View File

@@ -129,7 +129,8 @@ static const wchar_t * const name_arr[] =
L"up-line",
L"down-line",
L"suppress-autosuggestion",
L"accept-autosuggestion"
L"accept-autosuggestion",
L"cancel"
};
wcstring describe_char(wchar_t c)
@@ -227,7 +228,8 @@ static const wchar_t code_arr[] =
R_UP_LINE,
R_DOWN_LINE,
R_SUPPRESS_AUTOSUGGESTION,
R_ACCEPT_AUTOSUGGESTION
R_ACCEPT_AUTOSUGGESTION,
R_CANCEL
};
/** Mappings for the current input mode */