From 8a928c8b89b284ae9c2462cf25fcd9df35d6c3e6 Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Wed, 9 Mar 2016 10:16:34 +0800 Subject: [PATCH] Avoid overlapping key values defined by curses (Real fix). Real fix for issue #438. --- CRT.c | 2 +- CRT.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRT.c b/CRT.c index 314a70ac..3e8200b0 100644 --- a/CRT.c +++ b/CRT.c @@ -125,7 +125,7 @@ void CRT_fatalError(const char* note) __attribute__ ((noreturn)); void CRT_handleSIGSEGV(int sgn); -#define KEY_ALT(x) KEY_F(64) + (x - 'A') +#define KEY_ALT(x) (KEY_F(64 - 26) + (x - 'A')) }*/ diff --git a/CRT.h b/CRT.h index 8753da76..fb824136 100644 --- a/CRT.h +++ b/CRT.h @@ -115,7 +115,7 @@ void CRT_fatalError(const char* note) __attribute__ ((noreturn)); void CRT_handleSIGSEGV(int sgn); -#define KEY_ALT(x) KEY_F(64) + (x - 'A') +#define KEY_ALT(x) (KEY_F(64 - 26) + (x - 'A')) extern const char *CRT_treeStrAscii[TREE_STR_COUNT];