git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15024
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
if ( gdk_event->length == 1 )
{
{
if ( gdk_event->length == 1 )
{
- key_code = gdk_event->string[0];
+ key_code = (unsigned char)gdk_event->string[0];
- else if ((keysym & 0xFF) == keysym)
+ else if ( wxIsAsciiKeysym(keysym) )
- key_code = (guint)keysym;
+ key_code = (unsigned char)keysym;
{
if ( gdk_event->length == 1 )
{
{
if ( gdk_event->length == 1 )
{
- key_code = gdk_event->string[0];
+ key_code = (unsigned char)gdk_event->string[0];
- else if ((keysym & 0xFF) == keysym)
+ else if ( wxIsAsciiKeysym(keysym) )
- key_code = (guint)keysym;
+ key_code = (unsigned char)keysym;