diff --git a/Source/Editor/Tools/Terrain/CreateTerrainDialog.cs b/Source/Editor/Tools/Terrain/CreateTerrainDialog.cs index 3661b0131..dfdb005dd 100644 --- a/Source/Editor/Tools/Terrain/CreateTerrainDialog.cs +++ b/Source/Editor/Tools/Terrain/CreateTerrainDialog.cs @@ -238,24 +238,5 @@ namespace FlaxEditor.Tools.Terrain return base.CanCloseWindow(reason); } - - /// - public override bool OnKeyDown(KeyboardKeys key) - { - if (_isWorking) - return true; - - switch (key) - { - case KeyboardKeys.Escape: - OnCancel(); - return true; - case KeyboardKeys.Return: - OnSubmit(); - return true; - } - - return base.OnKeyDown(key); - } } }