docs: Add missing key codes
authorCheng Zhao <zcbenz@gmail.com>
Sun, 6 Mar 2016 06:12:04 +0000 (15:12 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 6 Mar 2016 06:12:04 +0000 (15:12 +0900)
docs/api/accelerator.md
docs/api/web-contents.md

index 8858d18e856ed5bc85ea3db2aa046655a2f97637..93d1f244c6b6d9172163ac7b15bc8d78854c9510 100644 (file)
@@ -23,6 +23,8 @@ The `Super` key is mapped to the `Windows` key on Windows and Linux and
 * `Control` (or `Ctrl` for short)
 * `CommandOrControl` (or `CmdOrCtrl` for short)
 * `Alt`
+* `Option`
+* `AltGr`
 * `Shift`
 * `Super`
 
@@ -44,3 +46,4 @@ The `Super` key is mapped to the `Windows` key on Windows and Linux and
 * `Escape` (or `Esc` for short)
 * `VolumeUp`, `VolumeDown` and `VolumeMute`
 * `MediaNextTrack`, `MediaPreviousTrack`, `MediaStop` and `MediaPlayPause`
+* `PrintScreen`
index 66ab545bf216f2a6b35eb1b8581988bfca0e61cb..8eda16b686024bc8cf29b9863e7208e728324144 100644 (file)
@@ -764,13 +764,9 @@ Sends an input `event` to the page.
 
 For keyboard events, the `event` object also have following properties:
 
-* `keyCode` Char or String (**required**) - The character that will be sent
-  as the keyboard event. Can be a single UTF-8 character, or the name of the
-  key that generates the event. Accepted key names are `enter`, `backspace`,
-  `delete`, `tab`, `escape`, `control`, `alt`, `altgr` (Windows only), `shift`,
-  `end`, `home`, `insert`, `left`, `up`, `right`, `down`, `pageUp`, `pageDown`,
-  `printScreen`, `meta`, `cmd` (OSX only), `command` (OSX only), `option`
-  (OSX only)
+* `keyCode` String (**required**) - The character that will be sent
+  as the keyboard event. Should only use the valid key codes in
+  [Accelerator](accelerator.md).
 
 For mouse events, the `event` object also have following properties: