Skip to content

Commit abb6145

Browse files
docs(keyboard): clarify how page.type works for non-US characters (#6273)
1 parent 8348085 commit abb6145

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/src/api/class-keyboard.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ page.keyboard.type("World", delay=100) # types slower, like a user
286286
Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case.
287287
:::
288288

289+
:::note
290+
For characters that are not on a US keyboard, only an `input` event will be sent.
291+
:::
292+
289293
### param: Keyboard.type.text
290294
- `text` <[string]>
291295

types/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9583,6 +9583,7 @@ export interface Keyboard {
95839583
* ```
95849584
*
95859585
* > NOTE: Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case.
9586+
* > NOTE: For characters that are not on a US keyboard, only an `input` event will be sent.
95869587
* @param text A text to type into a focused element.
95879588
* @param options
95889589
*/

0 commit comments

Comments
 (0)