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

Change the definition of clicked_by #4192

Merged
merged 8 commits into from
Mar 19, 2024
Merged

Change the definition of clicked_by #4192

merged 8 commits into from
Mar 19, 2024

Conversation

emilk
Copy link
Owner

@emilk emilk commented Mar 19, 2024

This is a refactor on the way to add support for opening context menus on touch screens via press-and-hold.

This PR changes what InputState::button_clicked does (it was ver badly named before), and also changes Response::clicked_by to no longer be true if clicking with keyboard (i.e. a widget has keyboard focus and the user presses Space or Enter).

@emilk emilk added the egui label Mar 19, 2024
@emilk emilk merged commit cd1ed73 into master Mar 19, 2024
35 checks passed
@emilk emilk deleted the emilk/click-refactor branch March 19, 2024 17:16
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.

None yet

1 participant