From 2cdcb45d16737ad9f509777e659ab29ab8e095bc Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 14 Jun 2014 22:25:21 +0800 Subject: [PATCH] Support INSERT in accelerator, fixes #398. --- atom/browser/ui/accelerator_util.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/ui/accelerator_util.cc b/atom/browser/ui/accelerator_util.cc index d2963cd8feb5..cd2bf49ca2ca 100644 --- a/atom/browser/ui/accelerator_util.cc +++ b/atom/browser/ui/accelerator_util.cc @@ -129,6 +129,8 @@ bool StringToAccelerator(const std::string& description, key = ui::VKEY_BACK; } else if (tokens[i] == "delete") { key = ui::VKEY_DELETE; + } else if (tokens[i] == "insert") { + key = ui::VKEY_INSERT; } else if (tokens[i] == "enter" || tokens[i] == "return") { key = ui::VKEY_RETURN; } else if (tokens[i] == "up") {