Also register 0x0d as another version of the ENTER key

This commit is contained in:
Paul LeoNerd Evans 2008-02-10 18:40:27 +00:00
parent f76b62a65a
commit 35d946e510

View File

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