From c01a79de6b2b8de601c553b032611692a7819d4f Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 1 Jul 2015 21:24:51 +0800 Subject: [PATCH] Fix the wrong reverse `pageup` and `pagedown` keys. --- atom/browser/ui/accelerator_util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/ui/accelerator_util.cc b/atom/browser/ui/accelerator_util.cc index 87e56d063d7e..41dde7acf732 100644 --- a/atom/browser/ui/accelerator_util.cc +++ b/atom/browser/ui/accelerator_util.cc @@ -152,9 +152,9 @@ bool StringToAccelerator(const std::string& description, key = ui::VKEY_HOME; } else if (tokens[i] == "end") { key = ui::VKEY_END; - } else if (tokens[i] == "pagedown") { - key = ui::VKEY_PRIOR; } else if (tokens[i] == "pageup") { + key = ui::VKEY_PRIOR; + } else if (tokens[i] == "pagedown") { key = ui::VKEY_NEXT; } else if (tokens[i] == "esc" || tokens[i] == "escape") { key = ui::VKEY_ESCAPE;