Allow to set 'unused' as a hotkey to disable that action. Patch by Imarok. Fixes #3051

This was SVN commit r18565.
This commit is contained in:
sanderd17 2016-07-27 12:29:31 +00:00
parent c70975b116
commit ab2c73e93a

View File

@ -63,6 +63,9 @@ static void LoadConfigBindings()
std::string hotkeyName = configPair.first.substr(7); // strip the "hotkey." prefix
for (const CStr& hotkey : configPair.second)
{
if (hotkey.LowerCase() == "unused")
continue;
std::vector<SKey> keyCombination;
// Iterate through multiple-key bindings (e.g. Ctrl+I)