Make global type more resilient, and fix modal keymap context
This commit is contained in:
parent
20f7fba16f
commit
ed3666547b
2 changed files with 13 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue