mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -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:
@@ -11,7 +11,7 @@ impl Eq for PanZoom {}
|
||||
|
||||
impl super::Demo for PanZoom {
|
||||
fn name(&self) -> &'static str {
|
||||
"🗖 Pan Zoom"
|
||||
"🔍 Pan Zoom"
|
||||
}
|
||||
|
||||
fn show(&mut self, ctx: &egui::Context, open: &mut bool) {
|
||||
|
||||
Reference in New Issue
Block a user