Bug 283827 When turn on IME and switch applications before fix characters, location bar doesn't accept any more character

patch by katsuhiromihara@goo.jp r=pinkerton sr=smfr a=asa
This commit is contained in:
timeless%mozdev.org 2005-06-01 16:33:48 +00:00
parent 4015f70115
commit 2f42bb8e81

View File

@ -1361,6 +1361,9 @@ if (KeyDown(0x39)) // press [caps lock] to start the profile
// Deactivate the TSMDocument assoicated with this EventHandler // Deactivate the TSMDocument assoicated with this EventHandler
// //
if (mTSMDocument) { if (mTSMDocument) {
// We should call FixTSMDocument() before deactivate the window.
// see http://bugzilla.mozilla.gr.jp/show_bug.cgi?id=4135
ResetInputState();
// make sure we do not use input widnow even some other code turn it for default by calling // make sure we do not use input widnow even some other code turn it for default by calling
// ::UseInputWindow(nsnull, TRUE); // ::UseInputWindow(nsnull, TRUE);
::UseInputWindow(mTSMDocument, FALSE); ::UseInputWindow(mTSMDocument, FALSE);