diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 11:56:52 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 11:58:09 +0200 |
commit | c1edda931d81f159e5c4be9f753153b621bdbad2 (patch) | |
tree | 813f713d8ab7d73f910dff8e2e8781506a01469c /framework/qml/TextEditor.qml | |
parent | 152aff4c7e26c4eccf0168ae401dbcd13b54c796 (diff) | |
download | kube-c1edda931d81f159e5c4be9f753153b621bdbad2.tar.gz kube-c1edda931d81f159e5c4be9f753153b621bdbad2.zip |
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.
Diffstat (limited to 'framework/qml/TextEditor.qml')
-rw-r--r-- | framework/qml/TextEditor.qml | 4 |
1 files changed, 0 insertions, 4 deletions
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 { | |||
48 | onTextChanged: root.htmlEnabled ? root.text = htmlText : root.text = plainText | 48 | onTextChanged: root.htmlEnabled ? root.text = htmlText : root.text = plainText |
49 | 49 | ||
50 | cursorPosition: edit.cursorPosition | 50 | cursorPosition: edit.cursorPosition |
51 | onCursorPositionChanged: { | ||
52 | //Only necessary to skip over invisible char | ||
53 | edit.cursorPosition = cursorPosition | ||
54 | } | ||
55 | } | 51 | } |
56 | 52 | ||
57 | Kube.ScrollHelper { | 53 | Kube.ScrollHelper { |