From c1edda931d81f159e5c4be9f753153b621bdbad2 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 13 Sep 2017 11:56:52 +0200 Subject: Replaced the invisible char hack with a better solution We now cache the format until the next char is inserted, which seems to work fine, doesn't break selection and is overall much cleaner. --- framework/qml/TextEditor.qml | 4 ---- 1 file changed, 4 deletions(-) (limited to 'framework/qml') diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml index 724ee03f..a538e83c 100644 --- a/framework/qml/TextEditor.qml +++ b/framework/qml/TextEditor.qml @@ -48,10 +48,6 @@ FocusScope { onTextChanged: root.htmlEnabled ? root.text = htmlText : root.text = plainText cursorPosition: edit.cursorPosition - onCursorPositionChanged: { - //Only necessary to skip over invisible char - edit.cursorPosition = cursorPosition - } } Kube.ScrollHelper { -- cgit v1.2.3