diff --git a/crates/keymap/src/ui/mod.rs b/crates/keymap/src/ui/mod.rs index 1eb67ab0..866b1024 100644 --- a/crates/keymap/src/ui/mod.rs +++ b/crates/keymap/src/ui/mod.rs @@ -103,7 +103,8 @@ pub type OnWidget = Box; /// set fields on it, or with [`Options::with`]. #[non_exhaustive] pub struct Options { - /// "Keyboard Shortcuts". + /// "Keyboard Shortcuts": the window title [`ShortcutsDialog::show`] draws, and the summary's + /// heading. [`ShortcutsDialog::ui`] draws no title; the host's container shows its own. pub title: &'static str, /// true; false shows the table read-only with Close and Summarize. pub editable: bool, @@ -251,8 +252,8 @@ impl<'a> ShortcutsDialog<'a> { }) } - /// The body only, for a host's own modal, preferences page or backstage. It fills the - /// available rectangle. + /// The body only, for a host's own modal, preferences page or backstage, which draws the + /// title. It fills the available rectangle. pub fn ui(self, ui: &mut egui::Ui, state: &mut DialogState) -> Option { self.with_env(|env| frame(ui, env, state)) } diff --git a/crates/keymap/src/ui/view.rs b/crates/keymap/src/ui/view.rs index 40ac6861..ae8ba041 100644 --- a/crates/keymap/src/ui/view.rs +++ b/crates/keymap/src/ui/view.rs @@ -960,7 +960,6 @@ impl Draw<'_, '_> { if let Some(path) = b.paths.first().filter(|p| !p.is_empty()) { tip.push(self.path_text(path)); } - tip.push(r.command.id.clone()); if let Some(h) = self.env.text.hint(b) { tip.push(self.vis(&h)); }