Skip to content

Commit f96cc95

Browse files
committed
Added DisableToggleKey method.
1 parent e108b4a commit f96cc95

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88
- Added LogException methods.
9+
- Added DisableToggleKey method.
910
- Changed the size of the input field so that the text is larger.
1011
- Changed enum command parameter to support namespaces to distinguish between enums with same names.
1112
- Changed resolution command names to be easier to understand.

Runtime/DevConsole.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,14 @@ public static void SetToggleKey(InputKey? toggleKey)
333333
_console.ConsoleToggleKey = toggleKey;
334334
}
335335

336+
/// <summary>
337+
/// Disable the key used to toggle the dev console.
338+
/// </summary>
339+
public static void DisableToggleKey()
340+
{
341+
_console.ConsoleToggleKey = null;
342+
}
343+
336344
/// <summary>
337345
/// Enable the dev console.
338346
/// </summary>

0 commit comments

Comments
 (0)