]> khamidou — GitHub mirrors - electron.git/commitdiff
Allow "Space" in accelerator.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 21 Oct 2013 07:35:54 +0000 (15:35 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 21 Oct 2013 07:35:54 +0000 (15:35 +0800)
browser/ui/accelerator_util.cc

index f8af678b5333f375d5a962e4b19d5f7c640cd4e7..e4cf70dd411d243817665e246795915066c0d7db 100644 (file)
@@ -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") {