Don't close panel on event unless active; add tests

This commit is contained in:
Nathan Sobo 2023-05-12 15:44:09 -06:00
parent bd795d7607
commit 6c60853842
3 changed files with 52 additions and 12 deletions

View file

@ -12,8 +12,8 @@ use gpui::{
geometry::vector::Vector2F,
keymap_matcher::KeymapContext,
platform::{CursorStyle, MouseButton, PromptLevel},
AnyElement, AppContext, Axis, ClipboardItem, Element, Entity, ModelHandle, Task, View,
ViewContext, ViewHandle, WeakViewHandle,
AnyElement, AppContext, ClipboardItem, Element, Entity, ModelHandle, Task, View, ViewContext,
ViewHandle, WeakViewHandle,
};
use menu::{Confirm, SelectNext, SelectPrev};
use project::{Entry, EntryKind, Project, ProjectEntryId, ProjectPath, Worktree, WorktreeId};