diff options
author | Shaojie Sun <shaojie.sun@linaro.com> | 2013-07-17 16:23:45 +0800 |
---|---|---|
committer | Sanjay Singh Rawat <sanjay.rawat@linaro.org> | 2013-07-22 11:19:49 +0530 |
commit | b32cbb9e0bf22c5c113acb7115d4019d0ffda48a (patch) | |
tree | 380f3ea69b96dc5f4013cfa633791d42dab486ae | |
parent | 6af5736969272d4f7eac03a7e6644d14625e7d60 (diff) | |
download | powerdebugV2-b32cbb9e0bf22c5c113acb7115d4019d0ffda48a.tar.gz |
add "case '\n'" for ENTER key input.
Because in some keyboard ENTER key value is '\n', so we must add this
value for ENTER key triggled.
Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
-rw-r--r-- | display.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -401,6 +401,7 @@ static int display_keystroke(int fd, void *data) display_prev_line(); break; + case '\n': case '\r': display_select(); break; @@ -474,6 +475,7 @@ static int display_find_keystroke(int fd, void *data) break; + case '\n': case '\r': if (!windata[current_win].ops || !windata[current_win].ops->selectf) return 0; |