diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2022-02-25 15:38:53 +0800 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2022-05-25 19:51:20 +0800 |
commit | 1c680287ff448ee3e196179cd6a586c9be0c012b (patch) | |
tree | 83cf76f90193a7fd79ab7c4e1129e4630286d5f5 /tests/auto/quick/qquicktableview/tst_qquicktableview.cpp | |
parent | 7b535d22d67d696b6f3e134a9937fd035990ab86 (diff) |
Use regular key events for cancelling popups
We should avoid creating shortcuts for special keys like
Cancel (Back/Escape), as it can interfere with the user's own shortcuts
by e.g. requiring use of Keys.shortcutOverride, which itself can only
be sent to items with active focus, preventing users from overriding
Qt's global shortcuts in some cases.
[ChangeLog][Controls][Important Behavior Changes] Popups no longer
handle the Escape and Back keys by grabbing them as shortcuts, instead
they are treated as regular events. This also means that popups
that should be closable with the Escape or Back keys must have focus.
Task-number: QTBUG-79280
Change-Id: Iaf7249226d5766b2ab101630de5590b9524c56dd
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktableview/tst_qquicktableview.cpp')
0 files changed, 0 insertions, 0 deletions