* Unconditionally place a '\' at the start of the command buffer when
autocompleting -- you're still all WRONG :p * Fix bugette where the completee didn't get its case copied from the completed token * Add functionality to autocomplete key names * Don't build client command completion on the dedicated server
This commit is contained in:
parent
66b31c94b9
commit
aa5e852056
3 changed files with 105 additions and 38 deletions
|
@ -1062,6 +1062,18 @@ void Key_Bindlist_f( void ) {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
============
|
||||
Key_KeynameCompletion
|
||||
============
|
||||
*/
|
||||
void Key_KeynameCompletion( void(*callback)(const char *s) ) {
|
||||
int i;
|
||||
|
||||
for( i = 0; keynames[ i ].name != NULL; i++ )
|
||||
callback( keynames[ i ].name );
|
||||
}
|
||||
|
||||
/*
|
||||
===================
|
||||
CL_InitKeyCommands
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue