Bug 406837 - clicking on text input box or address bar doesn't raise virtual keyboard on n800 r=roc sr=roc

This commit is contained in:
Brad Lassey 2008-09-10 12:12:58 -04:00
parent 40c9a11cb3
commit e43d03a42e

View File

@ -38,6 +38,11 @@
*
* ***** END LICENSE BLOCK ***** */
#ifdef MOZ_PLATFORM_HILDON
#define MAEMO_CHANGES
#include <gtk/gtkimcontext.h>
#endif
#include "prlink.h"
#include "nsWindow.h"
@ -6114,6 +6119,13 @@ nsWindow::SetIMEEnabled(PRUint32 aState)
// Even when aState is not PR_TRUE, we need to set IME focus.
// Because some IMs are updating the status bar of them in this time.
focusedWin->IMESetFocus();
#ifdef MOZ_PLATFORM_HILDON
if (mIMEData->mEnabled)
hildon_gtk_im_context_show (focusedIm);
else
hildon_gtk_im_context_hide (focusedIm);
#endif
} else {
if (IsIMEEditableState(mIMEData->mEnabled))
ResetInputState();