Commit c8bc0c7
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 objectName to gridViewContainerLoader for reliable
identification in focus logic
4. Added onActiveFocusChanged handlers to reset currentIndex to 0 when
grid views gain focus
5. This ensures consistent focus behavior and prevents focus issues when
navigating between pages
fix: 改进文件夹网格视图的焦点管理
1. 添加 activeFocusOnTab: false 防止 SwipeView 上出现不需要的标签焦点
2. 实现 onCurrentIndexChanged 处理程序,在切换页面时正确将焦点传递到网格
视图
3. 为 gridViewContainerLoader 添加 objectName 以便在焦点逻辑中可靠识别
4. 添加 onActiveFocusChanged 处理程序,在网格视图获得焦点时将
currentIndex 重置为 0
5. 确保一致的焦点行为,防止在页面间导航时出现焦点问题
Pms: BUG-2960911 parent 1176770 commit c8bc0c7
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 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
253 | 271 | | |
254 | 272 | | |
255 | 273 | | |
| |||
292 | 310 | | |
293 | 311 | | |
294 | 312 | | |
| 313 | + | |
295 | 314 | | |
296 | 315 | | |
297 | 316 | | |
| |||
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