rust-windowing / rust-windowing/winit

Document behavior of key events interacting with window focus

Open
#3,575 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S - docs
Dominant language
Rust
Stars
6.2k
Forks
1.3k
Avg merge
2d 19h
Merged PRs (30d)
9

Description

What happens when a key is held while a window loses focus? E.g. on X11 a synthetic key up event is received while on MacOS a key up event is received when the user releases the key. The behavior also seems to differ between modifier and normal keys.

Winit should document how window focus influences what key events get send and how this differs between platforms.

See also #3543

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating the platform-specific behavior described for X11 and macOS, then read the related issue #3543 for context. Done means documenting how window focus affects key-up events, including the differences between modifier and normal keys across platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, rust
Domain
documentation, operating-systems
Issue type
Documentation
Difficulty
3/5
Estimated time
Half a day
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.