-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.9.2, 6.10.0 Beta3
-
None
-
30b4419e1 (dev), 21b291e10 (6.10), 50a0e99cc (tqtc/lts-6.8), 2cd373a12 (tqtc/lts-6.5)
The following example has a global key shortcut "B" (which terminates the application) and two text areas that implement Keys.onTabPressed to participate in the tab focus chain. The expected behavior is that pressing "B" when a text area has the focus insert a "B" in the text area and not invoke the global shortcut. This worked in Qt 6.9.1 but no longer works in 6.9.2 or 6.10.0b3.
import QtQuick import QtQuick.Controls ApplicationWindow { width: 300 height: 300 visible: true Column { spacing: 20 TextArea { focus: true placeholderText: "TextArea1" Keys.onTabPressed: nextItemInFocusChain().forceActiveFocus(Qt.TabFocusReason) } TextArea { placeholderText: "TextArea2" Keys.onTabPressed: nextItemInFocusChain().forceActiveFocus(Qt.TabFocusReason) } } Shortcut { sequence: "B" onActivated: close() } }
- relates to
-
QTBUG-136959 Read-only TextEdit overrides all Shortcuts when it has activeFocus
-
- Closed
-
| For Gerrit Dashboard: QTBUG-139679 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 675486,5 | Allow text edit to process key events when shortcutoverride configured | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 686620,2 | Allow text edit to process key events when shortcutoverride configured | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 687025,2 | Allow text edit to process key events when shortcutoverride configured | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
| 687093,4 | Allow text edit to process key events when shortcutoverride configured | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |