Skip to content

Fix key state on MacOS - #610

Merged
francesca64 merged 1 commit into
rust-windowing:masterfrom
paulrouget:keystate
Jul 25, 2018
Merged

francesca64 merged 1 commit into
rust-windowing:masterfrom
paulrouget:keystate

Conversation

@paulrouget

@paulrouget paulrouget commented Jul 25, 2018 •

Copy link
Copy Markdown
Contributor

To reproduce the issue:

  • on Mac, cargo run --example window
  • press the Cmd key
  • See that we get two consecutive state:Release KeyboardInput events

We should get Pressed then Release.

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created an example program if it would help users understand this functionality

@francesca64 francesca64 added the DS - appkit Affects the AppKit/macOS backend label Jul 25, 2018
@francesca64

Copy link
Copy Markdown
Member

Good catch, thanks!

@francesca64
francesca64 merged commit 01cb8e5 into rust-windowing:master Jul 25, 2018
bors-servo pushed a commit to servo/servo that referenced this pull request Jul 30, 2018
Refactor winit key handling

This should improve keys input on Linux and Windows.
Should fix #17146 and #21161

Tested Mac, Windows and Linux. Basic typing works, combo work, text navigation works. I hit some strange issues where sometimes the text would be displayed late, but I believe it is unrelated to this PR.

If we land that now, we will hit a regression on Mac, we need a winit update that includes rust-windowing/winit#610.

@kwonoj and @atouchet I'd appreciate if you could look at this.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21250)
<!-- Reviewable:end -->
bors-servo pushed a commit to servo/servo that referenced this pull request Jul 30, 2018
Refactor winit key handling

This should improve keys input on Linux and Windows.
Should fix #17146 and fix #21161

Tested Mac, Windows and Linux. Basic typing works, combo work, text navigation works. I hit some strange issues where sometimes the text would be displayed late, but I believe it is unrelated to this PR.

If we land that now, we will hit a regression on Mac, we need a winit update that includes rust-windowing/winit#610.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21250)
<!-- Reviewable:end -->
bors-servo pushed a commit to servo/servo that referenced this pull request Jul 30, 2018
This should improve keys input on Linux and Windows.
Should fix #17146 and fix #21161

Tested Mac, Windows and Linux. Basic typing works, combo work, text navigation works. I hit some strange issues where sometimes the text would be displayed late, but I believe it is unrelated to this PR.

If we land that now, we will hit a regression on Mac, we need a winit update that includes rust-windowing/winit#610.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21250)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DS - appkit Affects the AppKit/macOS backend

Development

Successfully merging this pull request may close these issues.

2 participants