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

commitc23b7cedb22b5fa9114c4f7df691b01c97fe8dd7
parent0cc4363e10
authorLucas Galante <[email protected]>
date2026-07-01 18:20
Dispatch mouse and cursor moved events to selected_bool_editor

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

diff --git a/src/main.rs b/src/main.rs
index 3a075ca..3a292ea 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1520,6 +1520,7 @@ impl Application for DataEditorApp {
             if self.selected_font_editor.on_cursor_moved(px, py, &mut self.ui_context) { changed = true; }
             if self.selected_choice_editor.on_cursor_moved(px, py, &mut self.ui_context) { changed = true; }
             if self.selected_keybind_editor.on_cursor_moved(px, py, &mut self.ui_context) { changed = true; }
+            if self.selected_bool_editor.on_cursor_moved(px, py, &mut self.ui_context) { changed = true; }
             if self.raw_json_editor.on_cursor_moved(px, py, &mut self.ui_context) { changed = true; }
 
             if self.tree_list.on_cursor_moved(px, py, &mut self.ui_context) { changed = true; }
@@ -1641,6 +1642,10 @@ impl Application for DataEditorApp {
             changed = true;
             editor_handled = true;
         }
+        if self.selected_bool_editor.mouse_input(button, state, px, py, &mut self.ui_context) {
+            changed = true;
+            editor_handled = true;
+        }
         if self.raw_json_editor.mouse_input(button, state, px, py, &mut self.ui_context) {
             changed = true;
             editor_handled = true;