Allow single-character accelerators.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 22 Oct 2013 01:38:19 +0000 (09:38 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 22 Oct 2013 01:38:19 +0000 (09:38 +0800)
browser/ui/accelerator_util.cc

index c1563ca..b814783 100644 (file)
@@ -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;