Corretta key_to_e_char

git-svn-id: svn://10.65.10.50/trunk@327 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1994-10-07 08:53:13 +00:00
parent 987c5ce882
commit e7201e699c
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
#define VERSION 1.7
#define VERSION 1.8

View File

@ -395,7 +395,8 @@ KEY e_char_to_key(const EVENT* ep)
KEY key = ep->v.chr.ch;
if (key < K_INS || key > K_HELP)
{
if (ep->v.chr.shift && !isprint(key)) key += K_SHIFT;
// if (ep->v.chr.shift && !isprint(key)) key += K_SHIFT;
if (ep->v.chr.shift && (key < ' ' || key > 'z')) key += K_SHIFT;
if (key >= ' ' && ep->v.chr.control) key += K_CTRL;
}
return key;