mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-07 17:26:56 +00:00
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 editor::{Editor, MultiBuffer};
|
||||
use gpui::{
|
||||
actions, point, px, AppContext, Context, PromptLevel, TitlebarOptions, ViewContext,
|
||||
VisualContext, WindowBounds, WindowKind, WindowOptions,
|
||||
actions, point, px, AppContext, Context, FocusableView, PromptLevel, TitlebarOptions,
|
||||
ViewContext, VisualContext, WindowBounds, WindowKind, WindowOptions,
|
||||
};
|
||||
pub use only_instance::*;
|
||||
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!()
|
||||
// load_default_keymap(cx);
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue