structured data editor
git clone https://git.lucas.co/cce-data-editor.git
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;