Skip to content

Commit d25bffe

Browse files
wyu71deepin-bot[bot]
authored andcommitted
fix: ensure focus before expand in OverlapNotify
- Added forceActiveFocus() call before expand to fix Tab navigation starting from wrong position after mouse click expand. Log: ensure focus before expand in OverlapNotify pms: BUG-339891
1 parent 7b4ea55 commit d25bffe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

panels/notification/center/OverlapNotify.qml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ NotifyItem {
105105
TapHandler {
106106
enabled: !root.enableDismissed
107107
acceptedButtons: Qt.LeftButton
108-
onTapped: root.expand()
108+
onTapped: {
109+
root.forceActiveFocus()
110+
root.expand()
111+
}
109112
}
110113
Keys.onEnterPressed: root.expand()
111114
Keys.onReturnPressed: root.expand()

0 commit comments

Comments
 (0)