mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Support key combinations of over 4 keys. Fixes #12.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user