Skip to content

fix: ignore synthetic keyboard input#387

Merged
dzhou121 merged 1 commit intolapce:mainfrom
Long0x0:fix-keyboard-input
Mar 23, 2024
Merged

fix: ignore synthetic keyboard input#387
dzhou121 merged 1 commit intolapce:mainfrom
Long0x0:fix-keyboard-input

Conversation

@Long0x0
Copy link
Copy Markdown
Contributor

@Long0x0 Long0x0 commented Mar 23, 2024

Currently when we press alt+tab to switch to a window and release alt before tab, the window gains focus and then receives a tab key.

This leads to the issue lapce/lapce#2612 (same issue in samples/editor).

The KeyboardInput event has an is_synthetic flag to check for this.

Related discussion: rust-windowing/winit#3543 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants