really clear all binds during "resetbinds"
including self-assigned ones _resetallbinds Clears _all_ binds for all keys and all modes. Do not use the command manually. DOCREF _resetallbinds
This commit is contained in:
@@ -216,6 +216,8 @@ char *keyaction = NULL;
|
||||
|
||||
VAR(_defaultbinds, 0, 0, 1);
|
||||
|
||||
COMMANDF(_resetallbinds, "", () { if(_defaultbinds) loopv(keyms) loopj(keym::NUMACTIONS) bindkey(&keyms[i], "", j); });
|
||||
|
||||
bool bindkey(keym *km, const char *action, int type)
|
||||
{
|
||||
if(!km || type < keym::ACTION_DEFAULT || type >= keym::NUMACTIONS) return false;
|
||||
|
||||
Reference in New Issue
Block a user