Open Bug 1563205 Opened 5 years ago Updated 2 years ago

Simulate native key shortcuts with dispatchKeyEvent

Categories

(Remote Protocol :: CDP, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

(Blocks 1 open bug)

Details

We landed a basic implementation of Input::dispatchKeyEvent in Bug 1543142.

We intentionally left out some key combinations that can't be simulated with EventUtils or TextInputProcessor today. It seems to mostly affect native keyshortcuts on linux and osx. The goal of this bug is to add support for those key combinations, ideally in EventUtils.js directly so that all our test automation tools can benefit from it at the same time.

Some resources:

See also the comments from :masayuki in the previous bug:

Whiteboard: [puppeteer-alp
Whiteboard: [puppeteer-alp → [puppeteer-alpha]

The key combinations that most affect the gutenberg suite were added in Bug 1563206. The work in this bug represents a more general solution to the problem, which we don't need for alpha. If specific key bindings end up blocking many gutenberg tests in the near future, I suggest we file bugs for those as they come up.

Whiteboard: [puppeteer-alpha]

I don't see that this is needed for Puppeteer examples. When checking those files I cannot see any native key combination.

No longer blocks: puppeteer-examples
Priority: -- → P3
Component: CDP: Input → CDP
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.