diff options
Diffstat (limited to 'framework/qml/TextEditor.qml')
-rw-r--r-- | framework/qml/TextEditor.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml index 97aa56d2..6c11ddf9 100644 --- a/framework/qml/TextEditor.qml +++ b/framework/qml/TextEditor.qml | |||
@@ -34,9 +34,11 @@ FocusScope { | |||
34 | 34 | ||
35 | Kube.TextArea { | 35 | Kube.TextArea { |
36 | id: edit | 36 | id: edit |
37 | focus: true | ||
37 | anchors.fill: parent | 38 | anchors.fill: parent |
38 | selectByMouse: true | 39 | selectByMouse: true |
39 | wrapMode: TextEdit.Wrap | 40 | wrapMode: TextEdit.Wrap |
41 | Keys.onEscapePressed: nextItemInFocusChain().focus = true | ||
40 | } | 42 | } |
41 | TextArea.flickable: edit | 43 | TextArea.flickable: edit |
42 | } | 44 | } |