diff options
author | 2012-10-30 10:30:53 -0400 | |
---|---|---|
committer | 2012-10-30 10:30:53 -0400 | |
commit | a8b2b4e85ab241e20ce8f55d4c871a8653d435f7 (patch) | |
tree | f302e4bc11c870bfdbc7e2698487cc5ec784c112 /src | |
parent | 438f2e7ebbadcd8123c203edc507e9f11b54a6e2 (diff) | |
download | textadept-a8b2b4e85ab241e20ce8f55d4c871a8653d435f7.tar.gz textadept-a8b2b4e85ab241e20ce8f55d4c871a8653d435f7.zip |
Pass "Escape" key to Scintilla correctly in ncurses.
Diffstat (limited to 'src')
-rw-r--r-- | src/textadept.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textadept.c b/src/textadept.c index 4d430c8a..72e8af67 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2315,10 +2315,10 @@ int main(int argc, char **argv) { TermKeyResult res; TermKeyKey key; int keysyms[] = { - 0, SCK_BACK, SCK_TAB, SCK_RETURN, 0xFF1B /* GDK esc */, 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 - }; // note: use GDK keysym value for esc for now + 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 c = 0; while ((res = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) { if (res == TERMKEY_RES_ERROR) continue; |