From a3a1fd38dd768d45080ba9aa9e147e1f10e7d872 Mon Sep 17 00:00:00 2001 From: StackZ <47382115+SuperSaiyajinStackZ@users.noreply.github.com> Date: Sat, 4 Jan 2020 00:13:38 +0100 Subject: [PATCH] Remove TAB cause useless in U-U's case. --- source/keyboard.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/keyboard.cpp b/source/keyboard.cpp index 8ee3eda..5855368 100644 --- a/source/keyboard.cpp +++ b/source/keyboard.cpp @@ -32,7 +32,6 @@ Structs::Key modifierKeys[] = { {"\uE056", 300, 45, 20}, // Enter {"\uE01B", 0, 67, 30}, // Left Shift {"\uE01B", 285, 67, 35}, // Right Shift - {" ", 60, 90, 20}, // Tab {" ", 85, 90, 120}, // Space }; @@ -261,10 +260,10 @@ std::string Input::getString(uint maxLength, std::string Text, float inputTextSi } else { keyDownDelay = 0; } - } else if(modifierKeys[i].character == " " || modifierKeys[i].character == " ") { + } else if(modifierKeys[i].character == " ") { if(string.length() < maxLength) { shift = 0; - string += modifierKeys[i].character[0]; + string += modifierKeys[5].character[0]; } } break;