mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Add very minimal fallback keybindings
darcs-hash:20071015085130-75c98-1c91b5d8cc1227f15d5de68b85af2ceadbf66e31.gz
This commit is contained in:
parent
0f6fe652a4
commit
0bea4c46e3
1 changed files with 16 additions and 6 deletions
16
input.c
16
input.c
|
@ -340,6 +340,18 @@ int input_init()
|
|||
|
||||
input_terminfo_init();
|
||||
|
||||
/*
|
||||
If we have no keybindings, add a few simple defaults
|
||||
*/
|
||||
if( !al_get_count( &mappings ) )
|
||||
{
|
||||
input_mapping_add( L"", L"self-insert" );
|
||||
input_mapping_add( L"\n", L"execute" );
|
||||
input_mapping_add( L"\t", L"complete" );
|
||||
input_mapping_add( L"\x3", L"commandline \"\"" );
|
||||
input_mapping_add( L"\x4", L"exit" );
|
||||
input_mapping_add( L"\x5", L"bind" );
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -520,9 +532,7 @@ wint_t input_readch()
|
|||
No action to take on specified character, ignore it
|
||||
and move to next one.
|
||||
*/
|
||||
input_common_readch( 0 );
|
||||
|
||||
}
|
||||
input_common_readch( 0 ); }
|
||||
}
|
||||
|
||||
void input_mapping_get_names( array_list_t *list )
|
||||
|
|
Loading…
Reference in a new issue