From 047a637029c0d6f126914166a3faa4c9e36f56ce Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 8 Apr 2025 17:39:39 +0200 Subject: [PATCH] Fix Output Window debug console input when using history #3353 --- Source/Editor/Windows/OutputLogWindow.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Source/Editor/Windows/OutputLogWindow.cs b/Source/Editor/Windows/OutputLogWindow.cs index af6fa627d..b130d8d94 100644 --- a/Source/Editor/Windows/OutputLogWindow.cs +++ b/Source/Editor/Windows/OutputLogWindow.cs @@ -150,6 +150,12 @@ namespace FlaxEditor.Windows Owner.Set(Owner.Text + c); return true; } + else if (Owner != null && Owner._searchPopup != null && Owner._searchPopup.Visible) + { + // Redirect input into search textbox while typing and using command history + Owner.OnCharInput(c); + return true; + } return false; } @@ -177,7 +183,20 @@ namespace FlaxEditor.Windows return true; } break; + case KeyboardKeys.ArrowDown: + case KeyboardKeys.ArrowUp: + // UI navigation + return base.OnKeyDown(key); + default: + if (Owner != null && (Owner._searchPopup?.Visible ?? false)) + { + // Redirect input into search textbox while typing and using command history + Owner.OnKeyDown(key); + return true; + } + break; } + return base.OnKeyDown(key); }