Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upKeybindings don't work on Linux and maybe windows #21161
Comments
|
I'm going to try to tackle that one, including #17146. We accumulated a lot of workarounds and winit has changed quite a bit (fixed some stuff, broke some other stuff). There are few bugs in winit on Mac where key down events for modifiers are not sent correctly. My goal is to achieve the same behavior across the 3 platforms for:
|
|
I've had a look but made very little progress. I'm not sure how useful this will be, but just in case, here's what I have found on Linux: Everything happens in
|
|
This is a printout from adding a bunch of debugging println when pressing the following keys in this order:
I can push my branch that I used to generate this, but it is just a few println in the functions mentioned above |
|
@dorfsmay thank you. I think I might need help later with extensive testing. |
|
PR: #21250 |
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 -->
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 -->
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 -->
Maybe because of #21087