diff --git a/FlaxEditor/API/Editor.cs b/FlaxEditor/API/Editor.cs index a8d7117a..eec5f240 100644 --- a/FlaxEditor/API/Editor.cs +++ b/FlaxEditor/API/Editor.cs @@ -298,6 +298,11 @@ internal void Update() { _modules[i].OnUpdate(); } + + if (Input.GetKeyDown(Keys.F6)) + { + Simulation.RequestResumeOrPause(); + } } catch (Exception ex) { diff --git a/FlaxEditor/Windows/GameWindow.cs b/FlaxEditor/Windows/GameWindow.cs index adfee4ed..c3e1300a 100644 --- a/FlaxEditor/Windows/GameWindow.cs +++ b/FlaxEditor/Windows/GameWindow.cs @@ -293,10 +293,6 @@ public override bool OnKeyDown(Keys key) } } } - else if (key == Keys.F6) - { - Editor.Simulation.RequestResumeOrPause(); - } return base.OnKeyDown(key); }