Skip to content

Conversation

@mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Jun 20, 2024

It was surprising to me that this key wasn't sending Event::Key events (only Event::Text), so I added a Key for it.

@emilk emilk added the egui label Jun 21, 2024
@emilk
Copy link
Owner

emilk commented Jun 21, 2024

Have you tested this on web? scripts/build_demo_web.sh && scripts/start_server.sh

@mkeeter
Copy link
Contributor Author

mkeeter commented Jun 21, 2024

Have you tested this on web? scripts/build_demo_web.sh && scripts/start_server.sh

Yes, it seems to build and run fine (although I don't see a demo widget for debugging key events).

@emilk
Copy link
Owner

emilk commented Jun 23, 2024

I added a test in #4693 - I can help you test this one.

EDIT: it works.

Thanks!

@emilk emilk merged commit d7ccf4d into emilk:master Jun 23, 2024
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
* Part of emilk#3653

<!--
Please read the "Making a PR" section of
[`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md)
before opening a Pull Request!

* Keep your PR:s small and focused.
* The PR title is what ends up in the changelog, so make it descriptive!
* If applicable, add a screenshot or gif.
* If it is a non-trivial addition, consider adding a demo for it to
`egui_demo_lib`, or a new example.
* Do NOT open PR:s from your `master` branch, as that makes it hard for
maintainers to add commits to your PR.
* Remember to run `cargo fmt` and `cargo clippy`.
* Open the PR as a draft until you have self-reviewed it and run
`./scripts/check.sh`.
* When you have addressed a PR comment, mark it as resolved.

Please be patient! I will review your PR, but my time is limited!
-->

It was surprising to me that this key wasn't sending `Event::Key` events
(only `Event::Text`), so I added a `Key` for it.

Co-authored-by: Emil Ernerfeldt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants