mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 15:20:05 -04:00
Change the definition of clicked_by (#4192)
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).
This commit is contained in:
@@ -7,6 +7,13 @@ This file is updated upon each release.
|
||||
Changes since the last release can be found at <https://github.com/emilk/egui/compare/latest...HEAD> or by running the `scripts/generate_changelog.py` script.
|
||||
|
||||
|
||||
## Unreleased
|
||||
|
||||
### ⚠️ BREAKING
|
||||
* `Response::clicked*` and `Response::dragged*` may lock the `Context`, so don't call it from a `Context`-locking closure.
|
||||
* `Response::clicked_by` will no longer be true if clicked with keyboard. Use `Response::clicked` instead.
|
||||
|
||||
|
||||
## 0.26.2 - 2024-02-14
|
||||
* Avoid interacting twice when not required [#4041](https://github.com/emilk/egui/pull/4041) (thanks [@abey79](https://github.com/abey79)!)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user