treesummaryrefslogcommitdiff
diff options
context:
space:
mode:
-rw-r--r--main3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main3.c b/main3.c
index 4209d9c..16edbac 100644
--- a/main3.c
+++ b/main3.c
@@ -400,7 +400,7 @@ Node *GetNode(InputAction actions[NK_COUNT][IN_COUNT]) {
if (c == KEY_BACKSPACE1 || c == KEY_BACKSPACE2) {
s[slen-1] = '\0';
}
- else if (c == 13) {
+ else if (c == '\n' || c == '\r') {
mode = Mode_Normal;
}
else if (slen < STR_SIZE) {