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:
ac-stef
2016-09-06 18:43:37 +02:00
parent 27754f4a9b
commit a5470d5ea0
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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;