Support key combinations of over 4 keys. Fixes #12.

This commit is contained in:
Cheng Zhao 2013-05-22 14:20:16 +08:00
parent d265121ed0
commit 0bab9a9d84

View file

@ -42,7 +42,7 @@ bool StringToAccelerator(const std::string& description,
std::vector<std::string> tokens;
base::SplitString(shortcut, '+', &tokens);
if (tokens.size() < 2 || tokens.size() > 3) {
if (tokens.size() < 2 || tokens.size() > 4) {
LOG(WARNING) << "Invalid accelerator description: " << description;
return false;
}