A panel drop-down's command rows are full-width rows that take the theme's hover background (icon, label and shortcut on it) when hovered or focused. Up/Down move the focus through the enabled rows, Enter starts the command, Escape closes the drop-down. Rows publish `dropdown:<id>` and the highlighted one `dropdown_hot:<id>`; scenario s46 checks pointer and keyboard highlight. Fixes #288 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RjGw4gA5ZvKrU8MQP6sBgT
76 lines
1.5 KiB
JSON
76 lines
1.5 KiB
JSON
[
|
|
{
|
|
"note": "#288: a panel drop-down highlights the row under the pointer with the hover background, and the row with keyboard focus. Drop-down rows publish `dropdown:<command id>`, the highlighted one also `dropdown_hot:<command id>`."
|
|
},
|
|
{
|
|
"click": {
|
|
"handle": "panel:SOLID:CREATE"
|
|
}
|
|
},
|
|
{
|
|
"expect": {
|
|
"shown_handles": ["dropdown:solid.box", "dropdown:solid.sphere"],
|
|
"hidden_handles": ["dropdown_hot:solid.box", "dropdown_hot:solid.sphere"]
|
|
}
|
|
},
|
|
{
|
|
"move": {
|
|
"handle": "dropdown:solid.box"
|
|
}
|
|
},
|
|
{
|
|
"expect": {
|
|
"shown_handles": ["dropdown_hot:solid.box"],
|
|
"hidden_handles": ["dropdown_hot:solid.sphere", "dropdown_hot:solid.cylinder"]
|
|
}
|
|
},
|
|
{
|
|
"move": {
|
|
"handle": "dropdown:solid.sphere"
|
|
}
|
|
},
|
|
{
|
|
"expect": {
|
|
"shown_handles": ["dropdown_hot:solid.sphere"],
|
|
"hidden_handles": ["dropdown_hot:solid.box"]
|
|
}
|
|
},
|
|
{
|
|
"move": [700, 600]
|
|
},
|
|
{
|
|
"expect": {
|
|
"shown_handles": ["dropdown:solid.box"],
|
|
"hidden_handles": ["dropdown_hot:solid.sphere", "dropdown_hot:solid.box"]
|
|
}
|
|
},
|
|
{
|
|
"note": "The keyboard: Down focuses the first row, Down again the next; the highlight follows."
|
|
},
|
|
{
|
|
"key": "ArrowDown"
|
|
},
|
|
{
|
|
"expect": {
|
|
"shown_handles": ["dropdown_hot:sketch.create"]
|
|
}
|
|
},
|
|
{
|
|
"key": "ArrowDown"
|
|
},
|
|
{
|
|
"expect": {
|
|
"shown_handles": ["dropdown_hot:solid.extrude"],
|
|
"hidden_handles": ["dropdown_hot:sketch.create"]
|
|
}
|
|
},
|
|
{
|
|
"key": "Enter"
|
|
},
|
|
{
|
|
"expect": {
|
|
"hidden_handles": ["dropdown:solid.box"]
|
|
}
|
|
}
|
|
]
|