I am trying to use a CCTextFieldTTF in my application to get a username from the player, all goes well when entering text from the keyboards, but when the user press the SHIFT key from the virtual keyboard, the app crash and send me this message “…cpp:841: failed assertion”text == stop“”
I see there is not much progress on this bug so I solved it myself by filtering out the SHIFT release in the main event handler loop in CCEGLView_qnx.cpp
Change the SCREEN_EVENT_KEYBOARD case in CCEGLView_qnx.cpp to solve the problem for now:
if (val & KEY_DOWN)
{
screen_get_event_property_iv(m_screenEvent, SCREEN_PROPERTY_KEY_SYM, &val);
if (val != 61665) //<== This is to filter out the SHIFT key release on the playbool
{
if (val >= ‘’ && val < ‘~’)
{
buf[0] = val;
buf[1]= ‘’;
CCIMEDispatcher::sharedDispatcher()>dispatchInsertText;
}
else
{
val = val 0xf000;
buf[0] = val;
buf[1]= ‘’;
switch (val)
{
case 8: // backspace
// CCKeypadDispatcher::sharedDispatcher()->dispatchKeypadMSG(kTypeBackClicked);
CCIMEDispatcher::sharedDispatcher()->dispatchDeleteBackward();
break;