diff --git a/Cargo.toml b/Cargo.toml index 07b73c19..23ceccb3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -176,6 +176,7 @@ zbus = { workspace = true, optional = true } float-cmp = "0.10.0" ron = { workspace = true, optional = true } enumflags2 = "0.7.12" +roxmltree = "0.20" # Enable DBus feature on Linux targets [target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_vendor = "apple"))))'.dependencies] diff --git a/src/widget/text_input/input.rs b/src/widget/text_input/input.rs index c9b0c58e..34338e50 100644 --- a/src/widget/text_input/input.rs +++ b/src/widget/text_input/input.rs @@ -2752,7 +2752,7 @@ pub fn draw<'a, Message>( let handling_dnd_offer = !matches!(state.dnd_offer, DndOfferState::None); #[cfg(not(wayland_platform))] let handling_dnd_offer = false; - let (cursors, offset, _is_selecting) = if let Some(focus) = + let (cursors, offset, is_selecting) = if let Some(focus) = state.is_focused.filter(|f| f.focused).or_else(|| { let now = Instant::now(); handling_dnd_offer.then_some(Focus {