Skip to content

Commit

Permalink
Clarify docstring for response.context_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 25, 2024
1 parent e778cd5 commit f30cf2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/egui/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,8 @@ impl Response {

/// Response to secondary clicks (right-clicks) by showing the given menu.
///
/// Make sure the widget senses clicks (e.g. [`crate::Button`] does, [`crate::Label`] does not).
///
/// ```
/// # use egui::{Label, Sense};
/// # egui::__run_test_ui(|ui| {
Expand Down

0 comments on commit f30cf2e

Please sign in to comment.