Conversation
|
Preview available at https://egui-pr-preview.github.io/pr/5400-patch150 |
|
Hey, I'd love this feature. My usecase is having special stuff happen when someone hits the CTRL key. Any hope of getting it merged in? |
crates/egui/src/data/key.rs
Outdated
| Alt, | ||
| AltRight, | ||
| Control, | ||
| ControlRight, | ||
| Shift, | ||
| ShiftRight, |
There was a problem hiding this comment.
A) it's weird that there is both Alt and AltRight, but not AltLeft
B) on the PR preview (https://egui-pr-preview.github.io/pr/5400-patch150/) the Right versions doesn't work at all.
I think we either should just have a single Alt, OR we should have AltLeft and AltRight, and make sure it works everywhere
There was a problem hiding this comment.
Here, Alt, Ctrl, and Shift basically mean Left.
=> Marked as Left and Right.
logical_key.or(physical_key) to physical_key.or(logical_key)
This works fine, but I'm not sure if it has any negative effects elsewhere.
|
This doesn't work at all in the web demo at https://egui-pr-preview.github.io/pr/5400-patch150/: |
|
While it might not work well on the web because the |
|
I would really benefit from this feature. I am currently trying to create a key remapping application, and need access to the precise physical keys that are pressed, ie. An update on this works progression and if it is still being worked on would be appreciated. |
|
This PR was drafted by emilk and will not be progressed further. |

Add some Keys :