Commit b3b8ba0
feat: improve app list focus behavior and styling
1. Move Keys.onReturnPressed and Keys.onSpacePressed outside of the
button delegate to fix scope issues
2. Replace complex BoxPanel background with FocusBoxBorder for menu
items, simplifying styling and improving focus visibility
3. Add forceActiveFocus() call when list gains active focus to ensure
proper focus management
4. Change category type change behavior from positionViewAtBeginning to
setting currentIndex to 0 for better navigation
5. Simplify ItemBackground focus condition by removing focusPolicy check
feat: 改进应用列表焦点行为和样式
1. 将 Keys.onReturnPressed 和 Keys.onSpacePressed 移出按钮委托以修复作用
域问题
2. 使用 FocusBoxBorder 替换复杂的 BoxPanel 背景,简化样式并改进焦点可
见性
3. 在列表获得活动焦点时添加 forceActiveFocus() 调用以确保正确的焦点管理
4. 将类别类型更改行为从 positionViewAtBeginning 改为设置 currentIndex 为
0,改善导航体验
5. 通过移除 focusPolicy 检查简化 ItemBackground 焦点条件
PMS: BUG-3341671 parent 4c52e66 commit b3b8ba0
2 files changed
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
244 | 248 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 249 | + | |
| 250 | + | |
252 | 251 | | |
253 | 252 | | |
254 | 253 | | |
| |||
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
284 | | - | |
| 283 | + | |
285 | 284 | | |
286 | 285 | | |
287 | 286 | | |
| |||
332 | 331 | | |
333 | 332 | | |
334 | 333 | | |
| 334 | + | |
| 335 | + | |
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
341 | | - | |
| 342 | + | |
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments