From: handa Date: Tue, 9 Mar 2010 00:12:21 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: ALPHA~25 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=9a24cadd351eb05bafd709bc4fb7159573ebfbd1;p=m17n%2Fm17n-lib-js.git *** empty log message *** --- diff --git a/xex.js b/xex.js index ef1bea0..f719855 100644 --- a/xex.js +++ b/xex.js @@ -3111,17 +3111,19 @@ MIM.focus_in = function (event) { if (target.mim_ignore_focus_in) { - // Ignore this event which happened in setSelectionRange (). + 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); try { ic.Filter (MIM.Key.FocusIn); MIM.update (target, ic); // Ignore further focus-in caused by setSelectionRange (). - target.mim_ignore_focus_in = true; + // target.mim_ignore_focus_in = true; } catch (e) { Xex.Log ('Error:' + e); throw (e); } } @@ -3136,19 +3138,22 @@ MIM.focus_out = function (event) { if (target.mim_ignore_focus_out) { - // Ignore this event which caused by setSelectionRange (). + Xex.Log ('ignore focus_out in ' + target.tagName); + // Ignore this event which is caused by setSelectionRange (). target.mim_ignore_focus_out = false; event.preventDefault (); } else { + Xex.Log ('focus_out in ' + target.tagName); try { if (! MIM.get_range (target, ic)) ic.reset (); ic.Filter (MIM.Key.FocusOut); - MIM.update (target, ic); // Ignore further focus-out caused by setSelectionRange (). + target.mim_ignore_focus_in = true; target.mim_ignore_focus_out = true; + MIM.update (target, ic); } catch (e) { Xex.Log ('Error:' + e); throw (e); } }