From c8aa179ec06f58bf112a9916bf7429d538655498 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Thu, 15 Oct 2026 09:23:21 +0300 Subject: [PATCH] input: typing behind an open dialog stays out of the command line With Quick Select or another dialog open, letters typed while one of its lists was open went to the command line behind it (#922). Typed glyphs are now dropped while a dialog is up; its own text fields keep receiving them as before. Co-Authored-By: Claude Opus 5.5 --- src/app/update/command.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/update/command.rs b/src/app/update/command.rs index 4824068c8..29fb16bb7 100644 --- a/src/app/update/command.rs +++ b/src/app/update/command.rs @@ -302,6 +302,11 @@ impl OpenCADStudio { } return Task::none(); } + // A dialog owns the keyboard: typing while one is open (an open list + // in it included) must not land in the command line behind it. + if self.active_modal.is_some() || self.qselect.is_some() { + return Task::none(); + } // Filter out control characters — only push the typed // glyph(s). `Tab`, etc. arrive as Named keys, not here. if s.chars().all(|c| !c.is_control()) {