Apply global editor bindings in most windows

This commit is contained in:
2023-09-23 15:21:57 +03:00
parent 52cf4df641
commit 385c3541c9
6 changed files with 10 additions and 9 deletions

View File

@@ -117,9 +117,9 @@ namespace FlaxEditor.Windows.Profiler
};
_tabs.SelectedTabChanged += OnSelectedTabChanged;
FlaxEditor.Utilities.Utils.SetupCommonInputActions(this);
InputActions.Bindings.RemoveAll(x => x.Callback == this.FocusOrShow);
InputActions.Add(options => options.ProfilerWindow, Hide);
InputActions.Add(options => options.ProfilerStartStop, () => LiveRecording = !LiveRecording);
InputActions.Add(options => options.ProfilerClear, Clear);
}
/// <summary>