Repository navigation
Conversation
Two changes: 1. Xutf8LookupString is only defined for KeyPress not KeyRelease 2. Uncommented the necessary keypad events in events.rs to map to the relevant VirtualKeyCode for a Release
Update cocoa to 0.7 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/114) <!-- Reviewable:end -->
|
The new event mapping don't make much sense. If an X keysym doesn't exist in the winit keycode table, add it, don't map it to something else. I've included a fix for 1 in #164. |
|
Thanks for the comment. When I made this commit, keypad events weren't working in X11, so my intention was just to get those to work for a dependent project I was working on. My goal was just to make those events work with a minimal amount of effort and I was happy with the results. I'm sure there are better or more correct ways to do it, but I thought it would be valuable upstream to at least have keypad events working. If you have a better way to do this or it's already been fixed, then by all means ignore this pull request. |
|
I now better understand the relationship between X11 KeySyms and winit's |
|
Is this still relevant? It looks like this PR has been dormant for a while now. |
|
I'd say this is no longer relevant. The only part of it that's still applicable is the change to have numpad keys always produce the same While I agree with @Ralith about modifiers not influencing The docs say |
|
Closed via #396 |
…wing#114) Co-authored-by: David Lemarier <david@lemarier.ca>
Two changes: