From 9a24cadd351eb05bafd709bc4fb7159573ebfbd1 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 9 Mar 2010 00:12:21 +0000 Subject: [PATCH] *** empty log message *** --- xex.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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); } } -- 1.7.10.4