2013-09-09 20:54 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/cdpapi.c
* use CP437 control codes in translations from unicode to ASCII
* src/rtl/gtwvt/gtwvt.c
* added support for key code typed using ALT + <ASCII_VALUE_FROM_KEYPAD>
* tests/gtkeys.prg
* added parenthesis to clarify expression order
This commit is contained in:
@@ -1690,6 +1690,18 @@ HB_UCHAR hb_cdpGetUC( PHB_CODEPAGE cdp, HB_WCHAR wc, HB_UCHAR ucDef )
|
||||
if( uc )
|
||||
ucDef = uc;
|
||||
}
|
||||
if( ucDef == 0 )
|
||||
{
|
||||
int i;
|
||||
for( i = 0; i < 32; ++i )
|
||||
{
|
||||
if( s_uniCtrls[ i ] == wc )
|
||||
{
|
||||
ucDef = ( HB_UCHAR ) i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( wc <= 0xFF )
|
||||
|
||||
Reference in New Issue
Block a user