cleanup console stuff

This commit is contained in:
2024-04-06 15:16:03 +03:00
parent e7dc19b1a1
commit c17614e393
13 changed files with 270 additions and 370 deletions

View File

@@ -14,8 +14,8 @@ public class ConsoleInputTextBox : ConsoleTextBoxBase
{
}
public ConsoleInputTextBox(ConsoleContentTextBox contentBox, float x, float y, float width, float height) :
base(x, y, width, height)
public ConsoleInputTextBox(ConsoleContentTextBox contentBox, float x, float y, float width, float height)
: base(x, y, width, height)
{
this.contentBox = contentBox;
IsMultiline = true; // Not really but behaves better than single-line box
@@ -40,6 +40,7 @@ public class ConsoleInputTextBox : ConsoleTextBoxBase
{
if (inputTextLower.Length > 0)
{
// TODO: Remove this shit when scancode input is implemented in the engine
if ((mapping.Key == KeyboardKeys.Backslash || mapping.Key == KeyboardKeys.BackQuote) &&
(inputTextLower.Contains('ö') ||
inputTextLower.Contains('æ') ||