Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Anthony
75794eb7c7 Add tooltips for edit icon and exact match toggle icon 2025-07-16 18:09:39 -04:00

View file

@ -1273,6 +1273,18 @@ impl Render for KeymapEditor {
)
.shape(IconButtonShape::Square)
.toggle_state(exact_match)
.tooltip(move |window, cx| {
Tooltip::for_action(
if exact_match {
"Partial match mode"
} else {
"Exact match mode"
},
&ToggleExactKeystrokeMatching,
window,
cx,
)
})
.on_click(
cx.listener(|_, _, window, cx| {
window.dispatch_action(
@ -1345,7 +1357,14 @@ impl Render for KeymapEditor {
.unwrap_or_else(|| {
base_button_style(index, IconName::Pencil)
.visible_on_hover(row_group_id(index))
.tooltip(Tooltip::text("Edit Keybinding"))
.tooltip(|window, cx| {
Tooltip::for_action(
"Edit Keybinding",
&EditBinding,
window,
cx,
)
})
.on_click(cx.listener(move |this, _, window, cx| {
this.select_index(index, cx);
this.open_edit_keybinding_modal(false, window, cx);