Add keymap picker UI

Co-authored-by: Max <max@zed.dev>
This commit is contained in:
Mikayla Maki 2023-03-07 17:13:01 -08:00
parent 3594243644
commit 350ddf2025
8 changed files with 225 additions and 26 deletions

View file

@ -46,8 +46,8 @@ impl KeymapFileContent {
Self::load(path, cx).unwrap();
}
if let Some(base_keymap) = cx.global::<Settings>().base_keymap {
Self::load(base_keymap.asset_path(), cx).log_err();
if let Some(asset_path) = cx.global::<Settings>().base_keymap.asset_path() {
Self::load(asset_path, cx).log_err();
}
}