diff --git a/docs/api.md b/docs/api.md index 12b2c17f78718..26e613903e15a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -2440,7 +2440,7 @@ After the key is pressed once, subsequent calls to [`keyboard.down`](#keyboarddo If `key` is a single character and no modifier keys besides `Shift` are being held down, a `keypress`/`input` event will also generated. The `text` option can be specified to force an input event to be generated. -> **NOTE** Modifier keys DO effect `keyboard.press`. Holding down `Shift` will type the text in upper case. +> **NOTE** Modifier keys DO affect `keyboard.press`. Holding down `Shift` will type the text in upper case. Shortcut for [`keyboard.down`](#keyboarddownkey-options) and [`keyboard.up`](#keyboardupkey). @@ -2454,7 +2454,7 @@ Dispatches a `keypress` and `input` event. This does not send a `keydown` or `ke page.keyboard.sendCharacter('嗨'); ``` -> **NOTE** Modifier keys DO NOT effect `keyboard.sendCharacter`. Holding down `Shift` will not type the text in upper case. +> **NOTE** Modifier keys DO NOT affect `keyboard.sendCharacter`. Holding down `Shift` will not type the text in upper case. #### keyboard.type(text[, options]) - `text` <[string]> A text to type into a focused element. @@ -2471,7 +2471,7 @@ await page.keyboard.type('Hello'); // Types instantly await page.keyboard.type('World', {delay: 100}); // Types slower, like a user ``` -> **NOTE** Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case. +> **NOTE** Modifier keys DO NOT affect `keyboard.type`. Holding down `Shift` will not type the text in upper case. #### keyboard.up(key) - `key` <[string]> Name of key to release, such as `ArrowLeft`. See [USKeyboardLayout] for a list of all key names. @@ -3534,7 +3534,7 @@ Focuses the element, and then uses [`keyboard.down`](#keyboarddownkey-options) a If `key` is a single character and no modifier keys besides `Shift` are being held down, a `keypress`/`input` event will also be generated. The `text` option can be specified to force an input event to be generated. -> **NOTE** Modifier keys DO effect `elementHandle.press`. Holding down `Shift` will type the text in upper case. +> **NOTE** Modifier keys DO affect `elementHandle.press`. Holding down `Shift` will type the text in upper case. #### elementHandle.screenshot([options]) - `options` <[Object]> Same options as in [page.screenshot](#pagescreenshotoptions).