From 8323ab53ee4d61a3cdbad5ed39882811d9fb14d2 Mon Sep 17 00:00:00 2001 From: that Date: Wed, 18 May 2016 22:30:27 +0200 Subject: gui: fix Enter key in terminal Translating CR to LF was an old hack that breaks Enter in nano. Change-Id: If259e8b133f2f56f4126a1fb68856bf014a2daae --- gui/terminal.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'gui') diff --git a/gui/terminal.cpp b/gui/terminal.cpp index 2b2671c0f..b4194d0fb 100644 --- a/gui/terminal.cpp +++ b/gui/terminal.cpp @@ -425,8 +425,6 @@ public: bool inputChar(int ch) { debug_printf("inputChar: %d\n", ch); - if (ch == 13) - ch = 10; initPty(); // reinit just in case it died before // encode the char as UTF-8 and send it to the pty std::string c; -- cgit v1.2.3