electron-userland / electron-userland/spectron
Testing global shortcuts (accelerators)
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
My electron app has many webviews and some global keyboard shortcuts like
`cmd=`: zoom in
`cmd-`: zoom out
`cmdr`: reload
Everything works in the app and I want to write integration tests.
Till now I have not found any way to simulate/test this, since, `cmd` key is not identified and thus, nothing happens when I press these combinations.
I have tried RobotJS (does not support latest node version so rebuilding it for electron fails).
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository file, test, or entry point is named. Start by examining Spectron's existing keyboard-input integration and how Electron webviews handle the listed cmd shortcuts; done would require a documented, working way to simulate and verify those global accelerators.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, javascript
- Domain
- desktop, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100