From 0b492180dfe2a5877b13c481b551287eb9073e57 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 1 Oct 2024 12:29:29 +0200 Subject: [PATCH] Fix Content Finder input action binding in Output Log --- Source/Editor/Windows/OutputLogWindow.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Source/Editor/Windows/OutputLogWindow.cs b/Source/Editor/Windows/OutputLogWindow.cs index 5d37ce865..f8c4ea9b5 100644 --- a/Source/Editor/Windows/OutputLogWindow.cs +++ b/Source/Editor/Windows/OutputLogWindow.cs @@ -65,11 +65,6 @@ namespace FlaxEditor.Windows /// public OutputLogWindow Window; - /// - /// The input actions collection to processed during user input. - /// - public InputActionsContainer InputActions = new InputActionsContainer(); - /// /// The default text style. /// @@ -88,7 +83,7 @@ namespace FlaxEditor.Windows /// public override bool OnKeyDown(KeyboardKeys key) { - if (InputActions.Process(Editor.Instance, this, key)) + if (Window.InputActions.Process(Editor.Instance, this, key)) return true; return base.OnKeyDown(key); } @@ -214,9 +209,8 @@ namespace FlaxEditor.Windows // Setup editor options Editor.Options.OptionsChanged += OnEditorOptionsChanged; OnEditorOptionsChanged(Editor.Options.Options); - - _output.InputActions.Add(options => options.Search, () => _searchBox.Focus()); - InputActions.Add(options => options.Search, () => _searchBox.Focus()); + + InputActions.Add(options => options.Search, _searchBox.Focus); GameCooker.Event += OnGameCookerEvent; ScriptsBuilder.CompilationFailed += OnScriptsCompilationFailed;