From 3c32e1230e3b735e04d8c45cdd1d377a2b693217 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 29 Jan 2019 14:07:02 +0100 Subject: Doc: explain how to move active focus out of TextArea with tab Task-number: QTBUG-73202 Change-Id: Id0f760f0dd41079c823234b916b5419bf8c68552 Reviewed-by: Liang Qi Reviewed-by: Paul Wicking --- src/quicktemplates2/qquicktextarea.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src') 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} */ -- cgit v1.2.3