Review: Delete in the render queue does nothing while a menu is open

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
vangel76andClaude Sonnet 5.5 committed 2026-10-20 01:41:23 +02:00
1 parent 4f3851206a
commit 7c8ea2713d
1 file changed
+1
@@ -870,6 +870,7 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) {
&& !rendering
&& let Some(id) = selected
&& app.dialog.is_none()
&& !crate::widgets::any_menu_open(ui.ctx())
&& ui.input(|i| i.key_pressed(egui::Key::Delete) || i.key_pressed(egui::Key::Backspace))
// (A focused queue row is not typing; any other focused widget may be.)
&& (on_row || !ui.ctx().egui_wants_keyboard_input())