From: Cheng Zhao Date: Mon, 21 Oct 2013 07:35:54 +0000 (+0800) Subject: Allow "Space" in accelerator. X-Git-Tag: v0.6.3^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=94e40441604e98f6712078f2ef85515ec3778976;p=electron.git Allow "Space" in accelerator. --- diff --git a/browser/ui/accelerator_util.cc b/browser/ui/accelerator_util.cc index f8af678b..e4cf70dd 100644 --- a/browser/ui/accelerator_util.cc +++ b/browser/ui/accelerator_util.cc @@ -132,6 +132,8 @@ bool StringToAccelerator(const std::string& description, modifiers |= ui::EF_SHIFT_DOWN; } else if (tokens[i] == "tab") { key = ui::VKEY_TAB; + } else if (tokens[i] == "space") { + key = ui::VKEY_SPACE; } else if (tokens[i] == "backspace") { key = ui::VKEY_BACK; } else if (tokens[i] == "delete") {