Make global type more resilient, and fix modal keymap context

This commit is contained in:
Keith Simmons 2022-07-08 16:29:29 -07:00
parent 20f7fba16f
commit ed3666547b
2 changed files with 13 additions and 9 deletions

View file

@ -319,7 +319,9 @@ impl View for Terminal {
fn keymap_context(&self, _: &gpui::AppContext) -> gpui::keymap::Context {
let mut context = Self::default_keymap_context();
context.set.insert("ModalTerminal".into());
if self.modal {
context.set.insert("ModalTerminal".into());
}
context
}
}