Disable CTRL+W during the game

Fix #96
This commit is contained in:
stefnotch
2021-01-27 21:30:22 +01:00
parent f1763840c9
commit f00ae7fb21

View File

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