Commit 33af38e
committed
feat: set focus to first expanded notification item
1. Add logic to automatically set ListView currentIndex to the first
notification item when expanding an app group
2. This improves keyboard navigation by moving focus to the newly
expanded content
3. Calculate the correct index by adding 1 to the expanded app index
4. Only apply the focus change when the root view is available
feat: 设置焦点到新展开的首条通知项
1. 添加逻辑在展开应用组时自动将 ListView 当前索引设置到第一条通知项
2. 通过将焦点移动到新展开的内容来改进键盘导航体验
3. 通过展开应用索引加1计算正确的索引位置
4. 仅在根视图可用时应用焦点更改
5.修复了删除后,焦点给到下一项
PMS: BUG-2849871 parent adde632 commit 33af38e
1 file changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| 114 | + | |
109 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
| |||
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
166 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
167 | 183 | | |
168 | 184 | | |
169 | 185 | | |
| |||
0 commit comments