Merge pull request #2095 from atom/fix-page-key-error

Fix the wrong reverse `pageup` and `pagedown` keys.
This commit is contained in:
Kevin Sawicki 2015-07-01 09:07:33 -07:00
commit d6e25af59a

View file

@ -152,9 +152,9 @@ bool StringToAccelerator(const std::string& description,
key = ui::VKEY_HOME; key = ui::VKEY_HOME;
} else if (tokens[i] == "end") { } else if (tokens[i] == "end") {
key = ui::VKEY_END; key = ui::VKEY_END;
} else if (tokens[i] == "pagedown") {
key = ui::VKEY_PRIOR;
} else if (tokens[i] == "pageup") { } else if (tokens[i] == "pageup") {
key = ui::VKEY_PRIOR;
} else if (tokens[i] == "pagedown") {
key = ui::VKEY_NEXT; key = ui::VKEY_NEXT;
} else if (tokens[i] == "esc" || tokens[i] == "escape") { } else if (tokens[i] == "esc" || tokens[i] == "escape") {
key = ui::VKEY_ESCAPE; key = ui::VKEY_ESCAPE;