summaryrefslogtreecommitdiffstats
path: root/widget/src/text_input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/text_input.rs')
-rw-r--r--widget/src/text_input.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/widget/src/text_input.rs b/widget/src/text_input.rs
index ef6d31ac..61fc0055 100644
--- a/widget/src/text_input.rs
+++ b/widget/src/text_input.rs
@@ -693,7 +693,9 @@ where
let state = state();
if let Some(focus) = &mut state.is_focused {
- let Some(on_input) = on_input else { return event::Status::Ignored };
+ let Some(on_input) = on_input else {
+ return event::Status::Ignored;
+ };
if state.is_pasting.is_none()
&& !state.keyboard_modifiers.command()
@@ -716,7 +718,9 @@ where
let state = state();
if let Some(focus) = &mut state.is_focused {
- let Some(on_input) = on_input else { return event::Status::Ignored };
+ let Some(on_input) = on_input else {
+ return event::Status::Ignored;
+ };
let modifiers = state.keyboard_modifiers;
focus.updated_at = Instant::now();