projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
640f45a
)
Allow single-character accelerators.
author
Cheng Zhao
<zcbenz@gmail.com>
Tue, 22 Oct 2013 01:38:19 +0000
(09:38 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Tue, 22 Oct 2013 01:38:19 +0000
(09:38 +0800)
browser/ui/accelerator_util.cc
patch
|
blob
|
history
diff --git
a/browser/ui/accelerator_util.cc
b/browser/ui/accelerator_util.cc
index
c1563ca
..
b814783
100644
(file)
--- a/
browser/ui/accelerator_util.cc
+++ b/
browser/ui/accelerator_util.cc
@@
-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;