diff --git a/crates/terminal/src/connection.rs b/crates/terminal/src/connection.rs index 7babe45d93..d17752d395 100644 --- a/crates/terminal/src/connection.rs +++ b/crates/terminal/src/connection.rs @@ -191,7 +191,6 @@ impl TerminalConnection { let guard = self.term.lock(); let mode = guard.mode(); let esc = to_esc_str(keystroke, mode); - dbg!(&esc); drop(guard); if esc.is_some() { self.write_to_pty(esc.unwrap()); diff --git a/crates/terminal/src/connection/events.rs b/crates/terminal/src/connection/events.rs index cf0163e558..0adff38f86 100644 --- a/crates/terminal/src/connection/events.rs +++ b/crates/terminal/src/connection/events.rs @@ -219,7 +219,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode) -> Option { // Fallback to keystroke input sent directly if keystroke.key.chars().count() == 1 { - dbg!("This should catch space", &keystroke.key); + //TODO this might fail on unicode during internationalization return Some(keystroke.key.clone()); } else { None diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs index 96db9aa034..7963c40792 100644 --- a/crates/terminal/src/terminal.rs +++ b/crates/terminal/src/terminal.rs @@ -219,7 +219,6 @@ impl Terminal { ///Synthesize the keyboard event corresponding to 'enter' fn enter(&mut self, _: &Enter, cx: &mut ViewContext) { - dbg!("Here!"); self.connection.update(cx, |connection, _| { connection.try_keystroke(&Keystroke::parse("enter").unwrap()); }); diff --git a/crates/terminal/src/terminal_element.rs b/crates/terminal/src/terminal_element.rs index d4d2492bb8..cfb881feb2 100644 --- a/crates/terminal/src/terminal_element.rs +++ b/crates/terminal/src/terminal_element.rs @@ -384,9 +384,8 @@ impl Element for TerminalEl { self.connection .upgrade(cx.app) .map(|connection| { - connection.update(cx.app, |connection, _| { - connection.try_keystroke(dbg!(keystroke)) - }) + connection + .update(cx.app, |connection, _| connection.try_keystroke(keystroke)) }) .unwrap_or(false) }