Merge branch 'main' into vim2

This commit is contained in:
Conrad Irwin 2023-12-11 10:19:18 -07:00
commit af7c93b8d5
3 changed files with 4 additions and 1 deletions

View File

@ -183,6 +183,8 @@ macro_rules! impl_actions {
Ok(std::boxed::Box::new(gpui::serde_json::from_value::<Self>(value)?))
}
);
gpui::register_action!($name);
)*
};
}

View File

@ -964,6 +964,7 @@ impl Interactivity {
let interactive_bounds = interactive_bounds.clone();
cx.on_mouse_event(move |event: &MouseDownEvent, phase, cx| {
if phase == DispatchPhase::Bubble
&& event.button == MouseButton::Left
&& interactive_bounds.visibly_contains(&event.position, cx)
{
*pending_mouse_down.borrow_mut() = Some(event.clone());

View File

@ -24,7 +24,7 @@ use anyhow::Result;
const TERMINAL_PANEL_KEY: &'static str = "TerminalPanel";
actions!(terminal_view, [ToggleFocus]);
actions!(terminal_panel, [ToggleFocus]);
pub fn init(cx: &mut AppContext) {
cx.observe_new_views(