Skip to content

Change the definition of clicked_by - #4192

Merged
emilk merged 8 commits into
masterfrom
emilk/click-refactor
Mar 19, 2024
Merged

emilk merged 8 commits into
masterfrom
emilk/click-refactor

Conversation

@emilk

@emilk emilk commented Mar 19, 2024

Copy link
Copy Markdown
Owner

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
@emilk
emilk deleted the emilk/click-refactor branch March 19, 2024 17:16
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 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).
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.

1 participant