diff --git a/crates/terminal/src/connection.rs b/crates/terminal/src/connection.rs index 7babe45d93cc3659dbd459a835374449d1ac46b0..d17752d3957420491f7f5dd1cf4b60a5e14b97cd 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 cf0163e558dd24a9233cec692b004cd1d901a8f7..0adff38f8686b9b0774fad2bcf8660c84fcfa69e 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 96db9aa03445da42f269f74388fdeac292ed5fdf..7963c407927db8e4210e4854d73fd345dac5e323 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 d4d2492bb85e5021b9c7b9af19dff95ead911297..cfb881feb22fffe594a31de3783616775eb1a5d1 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) }