Restore focus when closing context menu

This commit is contained in:
Antonio Scandurra
2022-05-26 15:21:55 +02:00
parent a5044ccbba
commit 82ddac8e7e
5 changed files with 41 additions and 15 deletions
+1
View File
@@ -22,6 +22,7 @@ chat_panel = { path = "../chat_panel" }
cli = { path = "../cli" }
collections = { path = "../collections" }
command_palette = { path = "../command_palette" }
context_menu = { path = "../context_menu" }
client = { path = "../client" }
clock = { path = "../clock" }
contacts_panel = { path = "../contacts_panel" }
+1
View File
@@ -134,6 +134,7 @@ fn main() {
let mut languages = languages::build_language_registry(login_shell_env_loaded);
let user_store = cx.add_model(|cx| UserStore::new(client.clone(), http.clone(), cx));
context_menu::init(cx);
auto_update::init(http, client::ZED_SERVER_URL.clone(), cx);
project::Project::init(&client);
client::Channel::init(&client);