Compare commits

...

1 Commits

Author SHA1 Message Date
Ben Brandt
6bf8efd8ce agent: move-up no longer focuses context strip
This led to some confusing/unintuitive behavior, especially in-thread
where the context strip is at the bottom.
2025-05-09 13:05:35 +02:00
2 changed files with 2 additions and 6 deletions

View File

@@ -1467,12 +1467,10 @@ impl ActiveThread {
cx.notify();
}
fn move_up(&mut self, _: &MoveUp, window: &mut Window, cx: &mut Context<Self>) {
fn move_up(&mut self, _: &MoveUp, _window: &mut Window, cx: &mut Context<Self>) {
if let Some((_, state)) = self.editing_message.as_mut() {
if state.context_picker_menu_handle.is_deployed() {
cx.propagate();
} else {
state.context_strip.focus_handle(cx).focus(window);
}
}
}

View File

@@ -392,11 +392,9 @@ impl MessageEditor {
}
}
fn move_up(&mut self, _: &MoveUp, window: &mut Window, cx: &mut Context<Self>) {
fn move_up(&mut self, _: &MoveUp, _window: &mut Window, cx: &mut Context<Self>) {
if self.context_picker_menu_handle.is_deployed() {
cx.propagate();
} else {
self.context_strip.focus_handle(cx).focus(window);
}
}