Skip to content

Commit 168e980

Browse files
committed
Added comments.
1 parent b122d5b commit 168e980

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Runtime/DevConsoleMono.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,14 @@ internal char OnValidateInput(string input, int charIndex, char addedChar)
533533
{
534534
const char EmptyChar = '\0';
535535

536+
// If a new line character is entered, submit the command
536537
if (addedChar == '\n')
537538
{
538539
addedChar = EmptyChar;
539540
SubmitInput();
540541
}
541542

543+
// If a TAB character is entered, autocomplete the suggested command
542544
else if (addedChar == '\t')
543545
{
544546
addedChar = EmptyChar;

0 commit comments

Comments
 (0)