pane: Fix tooltips of navigation buttons (#17035)
Tooltips for "Go Forward"/"Go Back" did not show the keybindings. Now they do. Release Notes: - N/A
This commit is contained in:
parent
9ca772991f
commit
dfd113dfb0
3 changed files with 24 additions and 9 deletions
|
@ -360,12 +360,7 @@ impl AssistantPanel {
|
|||
}
|
||||
}))
|
||||
.tooltip(move |cx| {
|
||||
cx.new_view(|cx| {
|
||||
let keybind =
|
||||
KeyBinding::for_action_in(&DeployHistory, &focus_handle, cx);
|
||||
Tooltip::new("Open History").key_binding(keybind)
|
||||
})
|
||||
.into()
|
||||
Tooltip::for_action_in("Open History", &DeployHistory, &focus_handle, cx)
|
||||
})
|
||||
.selected(
|
||||
pane.active_item()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue