diff --git a/atom/common/keyboard_util.cc b/atom/common/keyboard_util.cc index f9f3f9aea5..35034a5002 100644 --- a/atom/common/keyboard_util.cc +++ b/atom/common/keyboard_util.cc @@ -42,6 +42,8 @@ ui::KeyboardCode KeyboardCodeFromKeyIdentifier(const std::string& s, return ui::VKEY_CAPITAL; } else if (str == "numlock") { return ui::VKEY_NUMLOCK; + } else if (str == "scrolllock") { + return ui::VKEY_SCROLL; } else if (str == "tab") { return ui::VKEY_TAB; } else if (str == "num0") { diff --git a/docs/api/accelerator.md b/docs/api/accelerator.md index 1fda1fe872..7bbccd4bc5 100644 --- a/docs/api/accelerator.md +++ b/docs/api/accelerator.md @@ -60,6 +60,7 @@ The `Super` key is mapped to the `Windows` key on Windows and Linux and * `Tab` * `Capslock` * `Numlock` +* `Scrolllock` * `Backspace` * `Delete` * `Insert`