mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-03 06:45:59 +02:00
Fixed issue clearing duplicate key binds
This commit is contained in:
parent
6e988b90aa
commit
e2337e7ac1
2 changed files with 28 additions and 2 deletions
|
@ -894,7 +894,10 @@ namespace IDE
|
|||
{
|
||||
curCmdMap = (*valuePtr) as CommandMap;
|
||||
if (curCmdMap == null)
|
||||
{
|
||||
curCmdMap.FailValues.Add(ideCommand);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -907,7 +910,10 @@ namespace IDE
|
|||
if (checkPrevCmd.mContextFlags == ideCommand.mContextFlags)
|
||||
gApp.OutputLineSmart("ERROR: The same key is bound for '{0}' and '{1}'", checkPrevCmd.mName, entry.mCommand);
|
||||
if (checkPrevCmd.mNext == null)
|
||||
{
|
||||
curCmdMap.FailValues.Add(ideCommand);
|
||||
break;
|
||||
}
|
||||
checkPrevCmd = checkPrevCmd.mNext;
|
||||
}
|
||||
checkPrevCmd.mNext = ideCommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue