summaryrefslogtreecommitdiffstats
path: root/framework/qml/TextEditor.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-23 17:33:09 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-23 17:33:09 +0200
commit519fa9c2874814569743d0473e68c26c009d66c1 (patch)
tree3d632f3662b4928c62a263bff17baf962a4f8eec /framework/qml/TextEditor.qml
parentea3c4eda77a02cf15779635a0c80e49077053e32 (diff)
downloadkube-519fa9c2874814569743d0473e68c26c009d66c1.tar.gz
kube-519fa9c2874814569743d0473e68c26c009d66c1.zip
Move focus to text editor by default, and forward to next item on esc
...since we support tabs in the text editor.
Diffstat (limited to 'framework/qml/TextEditor.qml')
-rw-r--r--framework/qml/TextEditor.qml2
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 }