Change summary
crates/terminal/src/connected_view.rs | 8 ++++++++
crates/terminal/src/terminal.rs | 8 --------
2 files changed, 8 insertions(+), 8 deletions(-)
Detailed changes
@@ -173,4 +173,12 @@ impl View for ConnectedView {
self.terminal
.update(cx, |terminal, _| terminal.write_to_pty(text.into()));
}
+
+ fn keymap_context(&self, _: &gpui::AppContext) -> gpui::keymap::Context {
+ let mut context = Self::default_keymap_context();
+ if self.modal {
+ context.set.insert("ModalTerminal".into());
+ }
+ context
+ }
}
@@ -171,14 +171,6 @@ impl View for TerminalView {
cx.focus(view.content.handle());
});
}
-
- fn keymap_context(&self, _: &gpui::AppContext) -> gpui::keymap::Context {
- let mut context = Self::default_keymap_context();
- if self.modal {
- context.set.insert("ModalTerminal".into());
- }
- context
- }
}
impl View for ErrorView {