1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00

Fix key forward targets

This commit is contained in:
bbedward
2025-10-10 13:51:17 -04:00
parent ba49654a64
commit 01a42ff330
2 changed files with 2 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ Item {
leftIconName: "search"
showClearButton: true
focus: true
ignoreTabKeys: true
keyForwardTargets: [modal.modalFocusScope]
onTextChanged: {
modal.searchText = text

View File

@@ -110,7 +110,7 @@ StyledRect {
onEditingFinished: root.editingFinished()
onAccepted: root.accepted()
onActiveFocusChanged: root.focusStateChanged(activeFocus)
Keys.forwardTo: root.ignoreLeftRightKeys ? root.keyForwardTargets : []
Keys.forwardTo: root.keyForwardTargets
Keys.onLeftPressed: event => {
if (root.ignoreLeftRightKeys) {
event.accepted = true