Fix esc in command palette
Also: add editor.register_action
This commit is contained in:
@@ -46,6 +46,7 @@ impl ModalLayer {
|
||||
previous_focus_handle: cx.focused(),
|
||||
focus_handle: cx.focus_handle(),
|
||||
});
|
||||
dbg!("focusing");
|
||||
cx.focus_view(&new_modal);
|
||||
cx.notify();
|
||||
}
|
||||
|
||||
@@ -2342,6 +2342,11 @@ impl Workspace {
|
||||
&self.active_pane
|
||||
}
|
||||
|
||||
pub fn pane_for(&self, handle: &dyn ItemHandle) -> Option<View<Pane>> {
|
||||
let weak_pane = self.panes_by_item.get(&handle.item_id())?;
|
||||
weak_pane.upgrade()
|
||||
}
|
||||
|
||||
fn collaborator_left(&mut self, peer_id: PeerId, cx: &mut ViewContext<Self>) {
|
||||
self.follower_states.retain(|_, state| {
|
||||
if state.leader_id == peer_id {
|
||||
|
||||
Reference in New Issue
Block a user