Commit c6598bd
committed
feat: improve grid navigation with circular behavior
Enhanced keyboard navigation in fullscreen grid view to provide circular
navigation behavior:
1. Added proper handling for empty grid scenarios
2. Implemented circular navigation within current page (wraps around
when reaching edges)
3. Added proper page switching logic with circular behavior between
pages
4. Fixed the previousIndex tracking for proper page transition state
management
5. Ensured consistent event handling by always accepting key events
The changes improve user experience by making navigation more intuitive
and preventing users from getting stuck at grid boundaries. The
navigation now seamlessly wraps around both within a page and between
pages.
Log: Improved keyboard navigation in fullscreen grid view with circular
behavior
Influence:
1. Test left/right arrow key navigation in empty grid
2. Verify circular navigation within a single page
3. Test page switching behavior when reaching grid boundaries
4. Verify navigation between multiple pages with circular behavior
5. Check that previousIndex is properly set for page transitions
6. Test that key events are properly accepted and handled
feat: 改进网格导航实现循环行为
增强了全屏网格视图中的键盘导航功能,提供循环导航行为:
1. 添加了对空网格场景的适当处理
2. 在当前页面内实现了循环导航(到达边缘时自动环绕)
3. 添加了适当的页面切换逻辑,支持页面间的循环行为
4. 修复了previousIndex跟踪,确保正确的页面过渡状态管理
5. 通过始终接受按键事件确保一致的事件处理
这些改进通过使导航更加直观并防止用户在网格边界处卡住,提升了用户体验。导
航现在可以在页面内和页面间无缝环绕。
Log: 改进了全屏网格视图中的键盘导航,支持循环行为
Influence:
1. 在空网格中测试左右方向键导航
2. 验证单个页面内的循环导航
3. 测试到达网格边界时的页面切换行为
4. 验证多页面间的循环导航行为
5. 检查previousIndex是否正确设置用于页面过渡
6. 测试按键事件是否被正确接受和处理
PMS: BUG-339605 BUG-337493 BUG-3244191 parent 6168166 commit c6598bd
1 file changed
Lines changed: 49 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | 424 | | |
426 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
427 | 445 | | |
428 | | - | |
| 446 | + | |
429 | 447 | | |
430 | 448 | | |
431 | | - | |
| 449 | + | |
432 | 450 | | |
433 | 451 | | |
434 | 452 | | |
435 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
436 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
437 | 477 | | |
438 | 478 | | |
439 | | - | |
440 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
441 | 483 | | |
442 | 484 | | |
443 | 485 | | |
| |||
0 commit comments