mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-03-28 23:58:52 +08:00
Allow single-character accelerators.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user