Blackberry: Reset virtual keyboard when shown.

The keyboard mode is shared between applications.

You can reproduce this bug by clicking on a spin box,
it will open a number only keyboard, then close the application
and run an application that shows a text edit: a number only
keyboard will appear.

PPS keyboard already does this.

Change-Id: Ia22e96ce13ad0cec1fd3b43fcdf4d03abfc25134
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
Sergio Martins 2012-12-14 17:15:47 +00:00 committed by The Qt Project
parent dde9569d38
commit 019f9158e6

View File

@ -86,6 +86,11 @@ bool QQnxVirtualKeyboardBps::handleEvent(bps_event_t *event)
bool QQnxVirtualKeyboardBps::showKeyboard()
{
qVirtualKeyboardDebug() << Q_FUNC_INFO << "current visibility=" << isVisible();
// They keyboard's mode is global between applications, we have to set it each time
if ( !isVisible() )
applyKeyboardMode(keyboardMode());
virtualkeyboard_show();
return true;
}