From 5a1d9747022c7b56a040cd5d125dd140fcaf0acf Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 21 Jul 2019 18:20:36 -0400 Subject: [PATCH] SendBox: insert 4 space on tab instead of huge \t --- src/qml/Chat/SendBox.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qml/Chat/SendBox.qml b/src/qml/Chat/SendBox.qml index 17722bd5..6d1a33b7 100644 --- a/src/qml/Chat/SendBox.qml +++ b/src/qml/Chat/SendBox.qml @@ -122,6 +122,10 @@ HRectangle { }) area.Keys.onEnterPressed.connect(area.Keys.onReturnPressed) + + area.Keys.onTabPressed.connect(event => { + textArea.insert(textArea.cursorPosition, " ") + }) } } }