Commit 79f087e
committed
fix: improve focus management in folder grid view
1. Added activeFocusOnTab: false to prevent unwanted tab focus on
SwipeView
2. Implemented onCurrentIndexChanged handler to properly transfer focus
to grid view when switching pages
3. Added onActiveFocusChanged handlers to reset currentIndex to 0 when
grid views gain focus
4. This ensures consistent focus behavior and prevents focus issues when
navigating between pages
fix: 改进文件夹网格视图的焦点管理
1. 添加 activeFocusOnTab: false 防止 SwipeView 上出现不需要的标签焦点
2. 实现 onCurrentIndexChanged 处理程序,在切换页面时正确将焦点传递到网格
视图
3. 添加 onActiveFocusChanged 处理程序,在网格视图获得焦点时将
currentIndex 重置为 0
4. 确保一致的焦点行为,防止在页面间导航时出现焦点问题
Pms: BUG-2960911 parent 1198277 commit 79f087e
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
253 | 260 | | |
254 | 261 | | |
255 | 262 | | |
| |||
268 | 275 | | |
269 | 276 | | |
270 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
271 | 283 | | |
272 | 284 | | |
273 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
274 | 293 | | |
275 | 294 | | |
276 | 295 | | |
| |||
320 | 339 | | |
321 | 340 | | |
322 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
323 | 347 | | |
324 | 348 | | |
325 | 349 | | |
| |||
343 | 367 | | |
344 | 368 | | |
345 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
346 | 376 | | |
347 | 377 | | |
348 | 378 | | |
| |||
0 commit comments