assistant2: Propagate move up action to inline picker from message editor (#23416)

Release Notes:

- N/A

Co-authored-by: Richard <richard@zed.dev>
This commit is contained in:
Agus Zubiaga 2025-01-21 16:02:52 -03:00 committed by GitHub
parent 86ff88ae1d
commit c825bb492d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -241,7 +241,9 @@ impl MessageEditor {
}
fn move_up(&mut self, _: &MoveUp, cx: &mut ViewContext<Self>) {
if self.context_picker_menu_handle.is_deployed() {
if self.context_picker_menu_handle.is_deployed()
|| self.inline_context_picker_menu_handle.is_deployed()
{
cx.propagate();
} else {
cx.focus_view(&self.context_strip);