Fix Content Finder input action binding in Output Log
This commit is contained in:
@@ -65,11 +65,6 @@ namespace FlaxEditor.Windows
|
||||
/// </summary>
|
||||
public OutputLogWindow Window;
|
||||
|
||||
/// <summary>
|
||||
/// The input actions collection to processed during user input.
|
||||
/// </summary>
|
||||
public InputActionsContainer InputActions = new InputActionsContainer();
|
||||
|
||||
/// <summary>
|
||||
/// The default text style.
|
||||
/// </summary>
|
||||
@@ -88,7 +83,7 @@ namespace FlaxEditor.Windows
|
||||
/// <inheritdoc />
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user