summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--widget/src/text_editor.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs
index a3470768..502b5de9 100644
--- a/widget/src/text_editor.rs
+++ b/widget/src/text_editor.rs
@@ -768,6 +768,10 @@ where
}
}
+ if !matches!(binding, Binding::Unfocus) {
+ shell.capture_event();
+ }
+
apply_binding(
binding,
self.content,
@@ -780,8 +784,6 @@ where
if let Some(focus) = &mut state.focus {
focus.updated_at = Instant::now();
}
-
- shell.capture_event();
}
}
}