EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Merge D2b: workspace migration, native windows, dialogs block floating panels
aiongge80aba857266
diff --cc crates/ui-egui/src/dock_ui.rsindex f8fffd84c,0f4ec0c0d..e8594893c--- a/crates/ui-egui/src/dock_ui.rs+++ b/crates/ui-egui/src/dock_ui.rs@@@ -446,10 -466,23 +466,24 @@@ impl EffectcraftApppanels::panel_menu_popup(self, ui);}+ /// Keys and dropped files that reach a floating panel's own OS window go to the main+ /// window's next frame ([`crate::EffectcraftApp::raw_input_hook`]), so its shortcuts and+ /// file import handle them. Text is not forwarded, and nothing is while a text field in+ /// the main window has the keyboard.+ fn forward_window_input(&mut self, ctx: &egui::Context, events: Vec<egui::Event>, files: Vec<craft_ui::docking::WindowFiles<PanelKind>>) {+ let typing = ctx.egui_wants_keyboard_input();+ let events = events.into_iter().filter(|event| !typing && !matches!(event, egui::Event::Text(_) | egui::Event::Ime(_)));+ self.forwarded.events.extend(events);+ self.forwarded.files.extend(files.into_iter().flat_map(|window| window.dropped));+ if !self.forwarded.events.is_empty() || !self.forwarded.files.is_empty() {+ ctx.request_repaint();+ }+ }+/// Automation ids for craft-ui's gesture sources: `panel.tab.<Panel>`, `panel.drag.<Panel>`- /// (the group's drag bar), `panel.tabs.more.<Panel>`, `panel.header.<Panel>` (a stacked- /// panel's open/close button), `panel.float.<n>.move`, `.close`, `.resize` (bottom-right+ /// (the group's drag bar), `panel.border.<Panel>` (the top border above its tabs),+ /// `panel.tabs.more.<Panel>`, `panel.header.<Panel>` (a stacked panel's open/close button),+ /// `panel.float.<n>.move`, `.close`, `.resize` (bottom-right/// corner) and `.resize.<Edge>`, `dock.gutter.<path>` (`a`/`b` per split level; a stack's gap/// below entry `i` adds `s<i>`), `dock.corner.<outer>.<inner>` where two dividers meet, and/// the same inside floating window `n` as `panel.float.<n>.gutter.…` and `.corner.…`.