From 182ea5cf7895441c7f453d227f2c44c5c62930fd Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 21 May 2013 15:59:49 -0400 Subject: Use '\n' keycode in curses instead of '\r'; src/textadept.c Win32-curses still uses '\r' since pdcurses reports it. --- src/textadept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index d455ea54..9fe52c1d 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2366,7 +2366,7 @@ int main(int argc, char **argv) { #else TermKeyResult res; TermKeyKey key; - int keysyms[] = {0,SCK_BACK,SCK_TAB,SCK_RETURN,SCK_ESCAPE,0,0,SCK_UP,SCK_DOWN,SCK_LEFT,SCK_RIGHT,0,0,SCK_INSERT,SCK_DELETE,0,SCK_PRIOR,SCK_NEXT,SCK_HOME,SCK_END}; + int keysyms[] = {0,SCK_BACK,SCK_TAB,'\n',SCK_ESCAPE,0,0,SCK_UP,SCK_DOWN,SCK_LEFT,SCK_RIGHT,0,0,SCK_INSERT,SCK_DELETE,0,SCK_PRIOR,SCK_NEXT,SCK_HOME,SCK_END}; while ((res = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) { if (res == TERMKEY_RES_ERROR) continue; if (key.type == TERMKEY_TYPE_UNICODE) -- cgit v1.2.3