diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2022-02-25 16:43:45 +0800 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2022-05-25 19:51:20 +0800 |
commit | 7b535d22d67d696b6f3e134a9937fd035990ab86 (patch) | |
tree | 1ba18c78b871ee191532b230e77b6f88e49e61aa /src/quicktemplates2/qquickmenu.cpp | |
parent | 615e9b33487736330ce50053bc7bb050296fca09 (diff) |
Give Dialogs and Menus focus by default
Dialogs and Menus should always have focus when they're opened,
especially now that the cancel key handling in
QQuickPopup/QQuickPopupItem is done via regular key events and not
shortcuts, as popups will now require focus in order to be cancelled
via keyboard.
[ChangeLog][Controls][Important Behavior Changes] Dialogs and Menus now
have their focus property set to true by default. Popups are unchanged,
meaning that popups that should be interacted with via keyboard
(including cancelling) should have focus set to true or
forceActiveFocus() called on them after opening.
Task-number: QTBUG-79280
Change-Id: Idd070f2b1e8180a34a0dadb6e11dc56e531df211
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickmenu.cpp')
-rw-r--r-- | src/quicktemplates2/qquickmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickmenu.cpp b/src/quicktemplates2/qquickmenu.cpp index 6b4f3fafce..a4a7835e50 100644 --- a/src/quicktemplates2/qquickmenu.cpp +++ b/src/quicktemplates2/qquickmenu.cpp @@ -196,7 +196,7 @@ static const int SUBMENU_DELAY = 225; will be \c true. For more information, see \l {Keyboard Focus in Qt Quick}. - The default value is \c false. + The default value is \c true. \sa {Popup::}{activeFocus} */ |