feat: add Wayland popup context menu to TextInput

This commit is contained in:
Hojjat 2026-05-19 19:36:50 -06:00 • committed by Michael Murphy
parent c6cf3db29d
commit d751855c74
3 changed files with 301 additions and 91 deletions

View file

@ -109,16 +109,6 @@ fn send_popup_direct(settings: iced_runtime::platform_specific::wayland::popup::
);
}
/// Sends a destroy popup action directly to the SCTK event loop.
#[cfg(feature = "wayland")]
fn send_destroy_popup_direct(id: iced_core::window::Id) {
iced_winit::send_wayland_action_direct(
iced_runtime::platform_specific::wayland::Action::Popup(
iced_runtime::platform_specific::wayland::popup::Action::Destroy { id },
),
);
}
/// Creates a context menu overlay for any widget implementing
/// [`HasSelectableText`].
///