Fix editor window closing when using RMB + Ctrl + W for slow camera flight

This commit is contained in:
Christopher Rothert
2023-09-25 15:25:53 +02:00
parent a672f6aa6b
commit 5ced9453d4

View File

@@ -192,6 +192,13 @@ namespace FlaxEditor.Windows
/// <inheritdoc />
public override bool OnKeyDown(KeyboardKeys key)
{
// Prevent closing the editor window when using RMB + Ctrl + W to slow down the camera flight
if (Editor.Options.Options.Input.CloseTab.Process(this, key))
{
if (Root.GetMouseButton(MouseButton.Right))
return true;
}
if (base.OnKeyDown(key))
return true;