From abb61456d153fe51d5c6e4ce5330216080592d61 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Mon, 26 Apr 2021 20:54:40 -0700 Subject: [PATCH] docs(keyboard): clarify how page.type works for non-US characters (#6273) --- docs/src/api/class-keyboard.md | 4 ++++ types/types.d.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/docs/src/api/class-keyboard.md b/docs/src/api/class-keyboard.md index be49dc8cd1..c830f98457 100644 --- a/docs/src/api/class-keyboard.md +++ b/docs/src/api/class-keyboard.md @@ -286,6 +286,10 @@ page.keyboard.type("World", delay=100) # types slower, like a user Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case. ::: +:::note +For characters that are not on a US keyboard, only an `input` event will be sent. +::: + ### param: Keyboard.type.text - `text` <[string]> diff --git a/types/types.d.ts b/types/types.d.ts index ab740185ea..e9cee28f75 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -9583,6 +9583,7 @@ export interface Keyboard { * ``` * * > NOTE: Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case. + * > NOTE: For characters that are not on a US keyboard, only an `input` event will be sent. * @param text A text to type into a focused element. * @param options */