From 519fa9c2874814569743d0473e68c26c009d66c1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 23 Jul 2017 17:33:09 +0200 Subject: Move focus to text editor by default, and forward to next item on esc ...since we support tabs in the text editor. --- framework/qml/TextEditor.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/qml') 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 { Kube.TextArea { id: edit + focus: true anchors.fill: parent selectByMouse: true wrapMode: TextEdit.Wrap + Keys.onEscapePressed: nextItemInFocusChain().focus = true } TextArea.flickable: edit } -- cgit v1.2.3