]> khamidou — GitHub mirrors - electron.git/commitdiff
Support key combinations of over 4 keys. Fixes #12.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 22 May 2013 06:20:16 +0000 (14:20 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 22 May 2013 06:20:16 +0000 (14:20 +0800)
browser/accelerator_util.cc

index 8f44fabbb216fb448037c3acf720a4a7db7e067b..0c642229ba7f9c47f4f4a37da5df7055ac8955b5 100644 (file)
@@ -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;
   }