git.lucas.co / cce-data-editor
structured data editor
git clone https://git.lucas.co/cce-data-editor.git

commit9d783ff0c254cf8259d1e629ae37d2a47c6b67be
parent054fa9b399
authorLucas Galante <[email protected]>
date2026-07-02 22:47
Wired up keyboard event propagation and tick updates for the tree list search box

 src/main.rs | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/main.rs b/src/main.rs
index 752fb96..084822b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1092,6 +1092,10 @@ impl Application for DataEditorApp {
     }
 
     fn tick(&mut self, _dt: f32, needs_rebuild: &mut bool) {
+        if self.ui_context.tick(_dt) {
+            *needs_rebuild = true;
+            self.needs_rebuild = true;
+        }
         if self.selected_color_editor.tick(_dt, &mut self.ui_context) {
             *needs_rebuild = true;
             self.needs_rebuild = true;
@@ -1892,6 +1896,11 @@ impl Application for DataEditorApp {
             }
         }
 
+        if !handled {
+            if self.tree_list.search_box.keyboard_input(event, &mut self.ui_context) {
+                handled = true;
+            }
+        }
         if !handled {
             if self.btn_open.keyboard_input(event, &mut self.ui_context) {
                 handled = true;