Skip to content

Commit b335fa2

Browse files
author
Roberto De Ioris
committed
SImage screenshot
1 parent 6ad63f9 commit b335fa2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Source/PythonEditor/Private/SPythonEditableText.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ FReply SPythonEditableText::OnKeyChar(const FGeometry& MyGeometry, const FCharac
3434
return Reply;
3535
}
3636
Reply = FReply::Handled();
37+
// substitute tab, with 4 spaces
3738
if (Character == TEXT('\t'))
3839
{
39-
FString String;
40-
String.AppendChar(Character);
41-
InsertTextAtCursor(String);
40+
InsertTextAtCursor(FString(" "));
4241
}
4342
//else if (Character == TEXT('('))
4443
//{

docs/screenshots/slate_SImage.png

44.6 KB
Loading

0 commit comments

Comments
 (0)