aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-10 18:40:27 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-10 18:40:27 +0000
commit35d946e510b7287ba5848a13a2d4f48b914d94d3 (patch)
treef379abba05518eb1234f34c8fe82849de996872a
parentf76b62a65a51f0b8f65a8e9cee513c0b80f060b6 (diff)
downloadtermo-35d946e510b7287ba5848a13a2d4f48b914d94d3.tar.gz
termo-35d946e510b7287ba5848a13a2d4f48b914d94d3.tar.xz
termo-35d946e510b7287ba5848a13a2d4f48b914d94d3.zip
Also register 0x0d as another version of the ENTER key
-rw-r--r--termkey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index 073ed8a..e1abe46 100644
--- a/termkey.c
+++ b/termkey.c
@@ -100,6 +100,7 @@ termkey_t *termkey_new_full(int fd, int flags, size_t buffsize)
termkey_register_c0(tk, TERMKEY_SYM_BACKSPACE, 0x08, "Backspace");
termkey_register_c0(tk, TERMKEY_SYM_TAB, 0x09, "Tab");
termkey_register_c0(tk, TERMKEY_SYM_ENTER, 0x0a, "Enter");
+ termkey_register_c0(tk, TERMKEY_SYM_ENTER, 0x0d, NULL);
termkey_register_c0(tk, TERMKEY_SYM_ESCAPE, 0x1b, "Escape");
// G1