Clean up prints

This commit is contained in:
Mikayla Maki 2022-07-14 17:23:43 -07:00
parent 98651c4b86
commit 1935208de6
4 changed files with 3 additions and 6 deletions

View file

@ -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());

View file

@ -219,7 +219,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode) -> Option<String> {
// 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

View file

@ -219,7 +219,6 @@ impl Terminal {
///Synthesize the keyboard event corresponding to 'enter'
fn enter(&mut self, _: &Enter, cx: &mut ViewContext<Self>) {
dbg!("Here!");
self.connection.update(cx, |connection, _| {
connection.try_keystroke(&Keystroke::parse("enter").unwrap());
});

View file

@ -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)
}