aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2019-01-29 14:07:02 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-01-30 09:05:17 +0000
commit3c32e1230e3b735e04d8c45cdd1d377a2b693217 (patch)
tree1970e03d72c47fd593271ed6afe1ac91fba33ba5
parent0fac346a891225415833a411974085133ae5f076 (diff)
Doc: explain how to move active focus out of TextArea with tab
Task-number: QTBUG-73202 Change-Id: Id0f760f0dd41079c823234b916b5419bf8c68552 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r--src/quicktemplates2/qquicktextarea.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquicktextarea.cpp b/src/quicktemplates2/qquicktextarea.cpp
index ee7d0ae3..95dd9f93 100644
--- a/src/quicktemplates2/qquicktextarea.cpp
+++ b/src/quicktemplates2/qquicktextarea.cpp
@@ -96,6 +96,24 @@ QT_BEGIN_NAMESPACE
\li Clips the content
\endlist
+ \section2 Tab Focus
+
+ By default, pressing the tab key while TextArea has
+ \l {Item::activeFocus}{active focus} results in a tab character being input
+ into the control itself. To make tab pass active focus onto another item,
+ use the attached \l KeyNavigation properties:
+
+ \code
+ TextField {
+ id: textField
+ }
+
+ TextArea {
+ KeyNavigation.priority: KeyNavigation.BeforeItem
+ KeyNavigation.tab: textField
+ }
+ \endcode
+
\sa TextField, {Customizing TextArea}, {Input Controls}
*/