The keys list is the dock's KEYS tab and the spine ends in one ?
Browse files at this commitc14d76f9a82d2febff77265ecf42f97f73a94267Parent: e1b0b68- feat
- the keys list is the dock's KEYS tab and the spine ends in one ?
2 changed files +7 -3
crates/app/src/keymap.rsmodified+3 -3
| @@ -1175,9 +1175,9 @@ impl Keymap { | |||
| 1175 | // key stays the one people look for -- the modifier is what | 1175 | // key stays the one people look for -- the modifier is what |
| 1176 | // makes it an intention ([`crate::cancels_export`]). | 1176 | // makes it an intention ([`crate::cancels_export`]). |
| 1177 | b(ActionId::CancelExport, "escape", true), | 1177 | b(ActionId::CancelExport, "escape", true), |
| 1178 | - // The help key (DESIGN.md §9): held, it opens the keys | 1178 | + // The help key (DESIGN.md §9, amended 2026-09-09): it swings |
| 1179 | - // overlay; released, it closes -- the room's own `on_key_up` | 1179 | + // the dock to its KEYS tab, and a second press (or `escape`) |
| 1180 | - // (`ui/stance.rs`) is what makes that a hold and not a latch. | 1180 | + // swings it back -- a toggle, not a hold, not a modal. |
| 1181 | // Its own key, not `shift+/`: gpui reports a shifted symbol as | 1181 | // Its own key, not `shift+/`: gpui reports a shifted symbol as |
| 1182 | // the glyph itself, so `"?"` is what a stroke of it reports. | 1182 | // the glyph itself, so `"?"` is what a stroke of it reports. |
| 1183 | b(ActionId::ShowActions, "?", false), | 1183 | b(ActionId::ShowActions, "?", false), |
crates/app/src/ui/stance.rsmodified+4 -0
| @@ -448,6 +448,10 @@ fn ghost( | |||
| 448 | gpui::FontWeight::MEDIUM, | 448 | gpui::FontWeight::MEDIUM, |
| 449 | )) | 449 | )) |
| 450 | .text_color(rgb(INK2())) | 450 | .text_color(rgb(INK2())) |
| 451 | + // The pointer's way to this glyph has to be findable by name like | ||
| 452 | + // every other ghost's (`spine_stance`), or a hand -- and the harness | ||
| 453 | + // -- can only reach the KEYS tab through its dock tab. | ||
| 454 | + .children(hitmap::action(action, true)) | ||
| 451 | .child(glyph.to_string()) | 455 | .child(glyph.to_string()) |
| 452 | // Every command wears its chord (DESIGN §4) -- except the one whose | 456 | // Every command wears its chord (DESIGN §4) -- except the one whose |
| 453 | // glyph already IS its stroke: `?` over `?` read as two question | 457 | // glyph already IS its stroke: `?` over `?` read as two question |