Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for function keys #1336

Closed
ambihelical opened this issue Mar 6, 2022 · 2 comments
Closed

Add support for function keys #1336

ambihelical opened this issue Mar 6, 2022 · 2 comments
Labels
feature New feature or request

Comments

@ambihelical
Copy link

Is your feature request related to a problem? Please describe.

It would be very useful if egui had support for function keys F1, F2, etc as they are great to bind for special purposes.

Describe the solution you'd like

Support for Fn keys in Key enum and handling on at least desktop platforms. Compile time feature if necessary.

Describe alternatives you've considered

I don't know of any alternative solutions other than choosing other key bindings. However a user may expect F1 to bring up help, and might appreciate function keys for other application functions.

Additional context

@ambihelical ambihelical added the feature New feature or request label Mar 6, 2022
@emilk
Copy link
Owner

emilk commented Mar 19, 2022

Just go ahead and add them if you want them! Just make sure to test them on web too!

@ambihelical
Copy link
Author

Looks like this was implemented in PR #1665, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants