Add some more fallback key bindings

DEL (aka backspace) and the arrows.

This makes fish usable without binding functions, though not pleasant.

See #1256.
This commit is contained in:
Fabian Homborg 2018-05-17 01:22:36 +02:00
parent 0dd2607cac
commit 9de28f6887

View file

@ -260,9 +260,15 @@ void init_input() {
input_mapping_add(L"\n", L"execute");
input_mapping_add(L"\r", L"execute");
input_mapping_add(L"\t", L"complete");
input_mapping_add(L"\x3", L"commandline \"\"");
input_mapping_add(L"\x3", L"commandline ''");
input_mapping_add(L"\x4", L"exit");
input_mapping_add(L"\x5", L"bind");
input_mapping_add(L"\x7f", L"backward-delete-char");
// Arrows - can't have functions, so *-or-search isn't available.
input_mapping_add(L"\e[A", L"up-line");
input_mapping_add(L"\e[B", L"down-line");
input_mapping_add(L"\e[C", L"forward-char");
input_mapping_add(L"\e[D", L"backward-char");
}
input_initialized = true;