Focus workspace on launch
Fixes action dispatch when no focus is there.
This commit is contained in:
parent
6bfe6fa0e1
commit
ec3bb0f090
1 changed files with 4 additions and 2 deletions
|
@ -10,8 +10,8 @@ pub use assets::*;
|
||||||
use collections::VecDeque;
|
use collections::VecDeque;
|
||||||
use editor::{Editor, MultiBuffer};
|
use editor::{Editor, MultiBuffer};
|
||||||
use gpui::{
|
use gpui::{
|
||||||
actions, point, px, AppContext, Context, PromptLevel, TitlebarOptions, ViewContext,
|
actions, point, px, AppContext, Context, FocusableView, PromptLevel, TitlebarOptions,
|
||||||
VisualContext, WindowBounds, WindowKind, WindowOptions,
|
ViewContext, VisualContext, WindowBounds, WindowKind, WindowOptions,
|
||||||
};
|
};
|
||||||
pub use only_instance::*;
|
pub use only_instance::*;
|
||||||
pub use open_listener::*;
|
pub use open_listener::*;
|
||||||
|
@ -425,6 +425,8 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
workspace.focus_handle(cx).focus(cx);
|
||||||
//todo!()
|
//todo!()
|
||||||
// load_default_keymap(cx);
|
// load_default_keymap(cx);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue