Change keybind hints order

This commit is contained in:
Alvaro Parker 2025-08-21 16:03:40 -04:00
parent edb8661021
commit 0354564c0e
No known key found for this signature in database

View file

@ -452,24 +452,6 @@ impl PickerDelegate for StashListDelegate {
.child( .child(
h_flex() h_flex()
.gap_0p5() .gap_0p5()
.child(
Button::new("drop-stash", "Drop")
.key_binding(
KeyBinding::for_action_in(
&stash_picker::DropStashItem,
&focus_handle,
window,
cx,
)
.map(|kb| kb.size(rems_from_px(12.))),
)
.on_click(|_, window, cx| {
window.dispatch_action(
stash_picker::DropStashItem.boxed_clone(),
cx,
)
}),
)
.child( .child(
Button::new("apply-stash", "Apply") Button::new("apply-stash", "Apply")
.key_binding( .key_binding(
@ -499,6 +481,24 @@ impl PickerDelegate for StashListDelegate {
.on_click(|_, window, cx| { .on_click(|_, window, cx| {
window.dispatch_action(menu::SecondaryConfirm.boxed_clone(), cx) window.dispatch_action(menu::SecondaryConfirm.boxed_clone(), cx)
}), }),
)
.child(
Button::new("drop-stash", "Drop")
.key_binding(
KeyBinding::for_action_in(
&stash_picker::DropStashItem,
&focus_handle,
window,
cx,
)
.map(|kb| kb.size(rems_from_px(12.))),
)
.on_click(|_, window, cx| {
window.dispatch_action(
stash_picker::DropStashItem.boxed_clone(),
cx,
)
}),
), ),
) )
.into_any(), .into_any(),