Simulate native key shortcuts with dispatchKeyEvent
Categories
(Remote Protocol :: CDP, task, P3)
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:
- native key events osx: https://searchfox.org/mozilla-central/source/widget/cocoa/NativeKeyBindings.mm
- native key events linux: https://searchfox.org/mozilla-central/source/widget/gtk/NativeKeyBindings.cpp
- example of a workaround used by :ochameau to implement one of the shortcuts: https://phabricator.services.mozilla.com/D31979
See also the comments from :masayuki in the previous bug:
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
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.
Comment 2•5 years ago
|
||
I don't see that this is needed for Puppeteer examples. When checking those files I cannot see any native key combination.
Updated•5 years ago
|
Assignee | ||
Updated•4 years ago
|
Updated•2 years ago
|
Description
•