KeyEvent crashes on macOS.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 9.7k
- Forks
- 565
- PR merge metrics
- No merged PRs in 30d
Description
I am developing my app with druid and find the KeyEvent will crush my app. I thought I missed something so I run example/event_viewer with cargo run --example=event_viewer. It still crashes, but only happened when I don't select the interactive_area.
So, the behaviors are:
- run
cargo run --example=event_viewerin my shell event_viewerwindow shows
a. I click any keys now and app crashed
b. I clickinteractive_areaand press the keys. app runs normally.
My env:
- macos 11.2.3
- Intel CPU
- rustc 1.53.0-nightly (07e0e2ec2 2021-03-24)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run cargo run --example=event_viewer on macOS and reproduce the crash by pressing a key before selecting the interactive_area in druid/examples/event_viewer.rs around line 228. Trace the KeyEvent handling for the two focus states; done means key presses no longer crash the event_viewer window when the interactive area is not selected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100