Support key combinations of over 4 keys. Fixes #12.
This commit is contained in:
parent
d265121ed0
commit
0bab9a9d84
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ bool StringToAccelerator(const std::string& description,
|
||||||
|
|
||||||
std::vector<std::string> tokens;
|
std::vector<std::string> tokens;
|
||||||
base::SplitString(shortcut, '+', &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;
|
LOG(WARNING) << "Invalid accelerator description: " << description;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue