diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-02-01 16:03:56 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-02-28 11:14:05 +0000 |
commit | 05eb8127594f0d40247e8c84a4704277dd12d16e (patch) | |
tree | acdf630aef450d658ac894653f77ba70af98c921 /src/quicktemplates2/qquickmenuitem_p_p.h | |
parent | 637630cc7ed0e6efd43678b11d1309e72a957874 (diff) |
QQuickMenu: allow enter/return to be used to activate items
Before this patch, only space was allowed.
Windows 10 and macOS 10.14.2 both allow using enter to activate menu
items.
Change-Id: I64476347669ff73f233efd129563a18ba51618a5
Fixes: QTBUG-73354
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickmenuitem_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickmenuitem_p_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickmenuitem_p_p.h b/src/quicktemplates2/qquickmenuitem_p_p.h index 034a199a..58a0ff20 100644 --- a/src/quicktemplates2/qquickmenuitem_p_p.h +++ b/src/quicktemplates2/qquickmenuitem_p_p.h @@ -73,6 +73,8 @@ public: void cancelArrow(); void executeArrow(bool complete = false); + bool acceptKeyClick(Qt::Key key) const override; + bool highlighted = false; QQuickDeferredPointer<QQuickItem> arrow; QQuickMenu *menu = nullptr; |