Hello!
I'm using gtk+ on top of Directfb. Recently I found out, that
I cannot type the "currency" symbol (as defined in the Latin1
charset) in any text entry, etc. In the sources of Directfb
I found, that in case the keycode "0xa4" (which is the code
for the currency sign) is typed by the user, it is converted
to "0x20ac", which is the euro sign (see below). Why is this?
Several keyboard layouts (eg. danish, swedish/finnish)
need the currency symbol...
Best regards
Christian Schaubschlaeger
static DFBInputDeviceKeySymbol
keyboard_get_symbol( int code,
unsigned short value,
DFBInputDeviceKeymapSymbolIndex level )
{
unsigned char type = KTYP(value);
unsigned char index = KVAL(value);
int base = (level == DIKSI_BASE);
switch (type) {
case KT_FN:
if (index < 20)
return DFB_FUNCTION_KEY( index + 1 );
break;
case KT_LETTER:
case KT_LATIN:
switch (index) {
case 0x1c:
return DIKS_PRINT;
case 0x7f:
return DIKS_BACKSPACE;
case 0xa4:
return 0x20ac; /* euro currency sign */
default:
return index;
}
...
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users