]> khamidou — GitHub mirrors - electron.git/commitdiff
Make escape to ui::VKEY_ESCAPE
authorKevin Sawicki <kevin@github.com>
Tue, 17 Jun 2014 21:47:35 +0000 (14:47 -0700)
committerKevin Sawicki <kevin@github.com>
Tue, 17 Jun 2014 21:47:35 +0000 (14:47 -0700)
atom/browser/ui/accelerator_util.cc

index cd2bf49ca2ca25c261b9af0a9923756bd1d81f25..09e98cf02a858a8e7441ef28618671dec11da48b 100644 (file)
@@ -149,7 +149,7 @@ bool StringToAccelerator(const std::string& description,
       key = ui::VKEY_PRIOR;
     } else if (tokens[i] == "pageup") {
       key = ui::VKEY_NEXT;
-    } else if (tokens[i] == "esc") {
+    } else if (tokens[i] == "esc" || tokens[i] == "escape") {
       key = ui::VKEY_ESCAPE;
     } else if (tokens[i] == "volumemute") {
       key = ui::VKEY_VOLUME_MUTE;