Allow single-character accelerators.
This commit is contained in:
parent
640f45a5b3
commit
585777e62d
1 changed files with 0 additions and 4 deletions
|
@ -93,10 +93,6 @@ 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() > 4) {
|
|
||||||
LOG(WARNING) << "Invalid accelerator description: " << description;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Now, parse it into an accelerator.
|
// Now, parse it into an accelerator.
|
||||||
int modifiers = ui::EF_NONE;
|
int modifiers = ui::EF_NONE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue