Ticket #3051: 3051_unused_hotkeys_v2.patch

File 3051_unused_hotkeys_v2.patch, 503 bytes (added by Imarok, 8 years ago)

moved the if one for higher

  • 0AD/source/ps/Hotkey.cpp

     
    6363        std::string hotkeyName = configPair.first.substr(7); // strip the "hotkey." prefix
    6464        for (const CStr& hotkey : configPair.second)
    6565        {
     66            if (hotkey.LowerCase() == "unused")
     67                continue;
     68
    6669            std::vector<SKey> keyCombination;
    6770
    6871            // Iterate through multiple-key bindings (e.g. Ctrl+I)