{
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;
}