Skip to content

Commit

Permalink
Allow single-character accelerators.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Oct 22, 2013
1 parent 640f45a commit 585777e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions browser/ui/accelerator_util.cc
Expand Up @@ -93,10 +93,6 @@ bool StringToAccelerator(const std::string& description,

std::vector<std::string> 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.
int modifiers = ui::EF_NONE;
Expand Down

0 comments on commit 585777e

Please sign in to comment.