Slightly tweak the key processing code

This commit is contained in:
stefnotch
2021-01-27 22:08:17 +01:00
parent f00ae7fb21
commit c820e87d4a
2 changed files with 29 additions and 11 deletions

View File

@@ -387,8 +387,9 @@ namespace FlaxEditor.Windows
}
}
// Prevent closing the game window tab during a play session
if (Editor.StateMachine.IsPlayMode && Editor.Options.Options.Input.CloseTab.Process(Root))
if (Editor.StateMachine.IsPlayMode && Editor.Options.Options.Input.CloseTab.Process(this, key))
{
return true;
}