Feature Request: Composition Events (Keyboard API)
See original GitHub issueWe’re using Puppeteer at WordPress, where we’ve created a custom editor. One thing we keep running into is bugs around input composition. Every now and then things break, and we’re not able to create tests for it with Puppeteer. It would be great if Puppeteer provided an additional keyboard
API to simulate composing characters with the keyboard.
https://w3c.github.io/uievents/#events-composition-types
In other words, this will not produce è
in Puppeteer:
await page.keyboard.down( 'Alt' );
await page.keyboard.type( '`' );
await page.keyboard.up( 'Alt' );
await page.keyboard.type( 'e' );
Thanks for the consideration!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:11
Top Results From Across the Web
Developers - Feature Request: Composition Events (Keyboard API) -
We're using Puppeteer at WordPress, where we've created a custom editor. One thing we keep running into is bugs around input composition.
Read more >KeyboardEvent - Web APIs | MDN
KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key ...
Read more >KeyboardEvent.isComposing - Chrome Platform Status
Feature : KeyboardEvent.isComposing ... Allows an app to determine if there is an active composition outstanding for keyboard events being ...
Read more >UI Events - W3C
5.6.2 Keyboard Event Key Location; 5.6.3 Keyboard Event Order; 5.6.4 Keyboard Event Types. 5.6.4.1 keydown; 5.6.4.2 keyup. 5.7 Composition ...
Read more >Elements of a composition - Descript Help
Related articles. Composition properties · Audio-only compositions · Composition overview · Editor panels · Quick guide to keyboard shortcut changes. Was ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
good news, just found a page about a CDP method called ‘Input.imeSetComposition’ in Chromium Code Review. once this feature is shipped, it might resolve the issue about lack of support upstream. the question now is would Puppeteer be implementing a wrapper around this method?
sources: https://github.com/microsoft/playwright/issues/5777 https://chromium-review.googlesource.com/c/chromium/src/+/2764592
This is still an issue. Just preventing @stale from closing it.