Ticket #3051: 3051_unused_hotkeys.patch

File 3051_unused_hotkeys.patch, 463 bytes (added by Imarok, 8 years ago)

Allowing unused as hotkey(caseinsensitive)

  • source/ps/Hotkey.cpp

     
    7171            tokenizer tok(hotkey, sep);
    7272            for (tokenizer::iterator it = tok.begin(); it != tok.end(); ++it)
    7373            {
     74                if (CStr8(*it).LowerCase() == "unused")
     75                    continue;
     76
    7477                // Attempt decode as key name
    7578                int mapping = FindKeyCode(*it);
    7679                if (!mapping)