From: handa Date: Wed, 10 Mar 2010 12:08:34 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: ALPHA~22 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=983c711cb17bf83071915faabaff92698ff1e0e2;p=m17n%2Fm17n-lib-js.git *** empty log message *** --- diff --git a/xex.js b/xex.js index 90fd2d3..e97c17e 100644 --- a/xex.js +++ b/xex.js @@ -3144,20 +3144,9 @@ MIM.focus_in = function (event) { var target = event.target; var ic = target.mim_ic; - if (ic) - { - if (target.mim_ignore_focus_in) - { - Xex.Log ('ignore focus_in in ' + target.tagName); - // Ignore this event which is caused by setSelectionRange (). - target.mim_ignore_focus_in = false; - event.preventDefault (); - } - else - { - Xex.Log ('focus_in in ' + target.tagName); - ic.Filter (MIM.Key.FocusIn); - MIM.update (target, ic); + ic.Filter (MIM.Key.FocusIn); + target.removeEventListener (''); + setTimeout (MIM.update (target, ic); // Ignore further focus-in caused by setSelectionRange (). target.mim_ignore_focus_in = true; }