return false;
#if wxUSE_UNICODE
- if ( event.GetUnicodeKey() == WXK_NONE )
+ if ( static_cast<int>(event.GetUnicodeKey()) == WXK_NONE )
return false;
#else
if ( event.GetKeyCode() > WXK_START )
// a valid character, so not a whole lot of testing needs to be done.
wxTextCtrl* tc = Text();
- wxChar ch;
+ int ch;
bool isPrintable;
else
#endif // wxUSE_UNICODE
{
- ch = (wxChar)event.GetKeyCode();
+ ch = event.GetKeyCode();
isPrintable = ch >= WXK_SPACE && ch < WXK_START;
}
default:
if ( isPrintable )
- tc->WriteText(ch);
+ tc->WriteText(static_cast<wxChar>(ch));
break;
}
}
}
Combo()->SetSelection(m_index);
- Combo()->SetInsertionPointEnd();
Combo()->SetFocus();
}