agent: Only focus on the context strip if it has items to display (#30379)
This commit is contained in:
parent
f2dcc98216
commit
9dabf491f0
3 changed files with 11 additions and 5 deletions
|
@ -401,7 +401,7 @@ impl MessageEditor {
|
|||
fn move_up(&mut self, _: &MoveUp, window: &mut Window, cx: &mut Context<Self>) {
|
||||
if self.context_picker_menu_handle.is_deployed() {
|
||||
cx.propagate();
|
||||
} else {
|
||||
} else if self.context_strip.read(cx).has_context_items(cx) {
|
||||
self.context_strip.focus_handle(cx).focus(window);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue