diff options
author | 2025-02-02 20:45:29 +0100 | |
---|---|---|
committer | 2025-02-02 20:45:29 +0100 | |
commit | ae10adda74320e8098bfeb401f12a278e1e7b3e2 (patch) | |
tree | 1827aabad023b06a6cb9dd6ec50093af969ecf0c /widget/src/combo_box.rs | |
parent | d5ee9c27955e6dfeb645e2641f3d24b006685484 (diff) | |
download | iced-ae10adda74320e8098bfeb401f12a278e1e7b3e2.tar.gz iced-ae10adda74320e8098bfeb401f12a278e1e7b3e2.tar.bz2 iced-ae10adda74320e8098bfeb401f12a278e1e7b3e2.zip |
Refactor and simplify `input_method` API
Diffstat (limited to 'widget/src/combo_box.rs')
-rw-r--r-- | widget/src/combo_box.rs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/widget/src/combo_box.rs b/widget/src/combo_box.rs index d7c7c922..05793155 100644 --- a/widget/src/combo_box.rs +++ b/widget/src/combo_box.rs @@ -63,7 +63,6 @@ use crate::core::renderer; use crate::core::text; use crate::core::time::Instant; use crate::core::widget::{self, Widget}; -use crate::core::window; use crate::core::{ Clipboard, Element, Event, Length, Padding, Rectangle, Shell, Size, Theme, Vector, @@ -554,17 +553,8 @@ where shell.capture_event(); } - if let Some(redraw_request) = local_shell.redraw_request() { - match redraw_request { - window::RedrawRequest::NextFrame => { - shell.request_redraw(); - } - window::RedrawRequest::At(at) => { - shell.request_redraw_at(at); - } - } - } - shell.update_caret_info(local_shell.caret_info()); + shell.request_redraw_at(local_shell.redraw_request()); + shell.request_input_method(local_shell.input_method()); // Then finally react to them here for message in local_messages { @@ -757,7 +747,7 @@ where &mut local_shell, viewport, ); - shell.update_caret_info(local_shell.caret_info()); + shell.request_input_method(local_shell.input_method()); } }); |