Followup to bug 443370 autocomplete doesn't ignore input events well enough r=ajschult
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Thu, 09 Oct 2008 11:49:17 +0100
changeset 20202 9929cf926c6295d9bc338b2e4cbc718303d1eaab
parent 20201 5ab2c2b2f3a06887ff4dc475b75c0ec6c3d7d17c
child 20204 3a9a64e5bedcf17d5d34e9cafbb1e7370300784c
push idunknown
push userunknown
push dateunknown
reviewersajschult
bugs443370
milestone1.9.1b2pre
Followup to bug 443370 autocomplete doesn't ignore input events well enough r=ajschult
xpfe/components/autocomplete/resources/content/autocomplete.xml
--- a/xpfe/components/autocomplete/resources/content/autocomplete.xml
+++ b/xpfe/components/autocomplete/resources/content/autocomplete.xml
@@ -907,19 +907,16 @@
       <!--  -->
       <method name="processInput">
         <body><![CDATA[
           // stop current lookup in case it's async.
           this.stopLookup();
           // stop the queued up lookup on a timer
           this.clearTimer();
 
-          if (this.ignoreInputEvent)
-            return;
-          
           if (this.disableAutoComplete)
             return;
 
           this.userAction = "typing";
           this.mNeedToFinish = true;
           this.mTransientValue = false;
           this.mNeedToComplete = true;
           var str = this.value;
@@ -1432,17 +1429,17 @@
           performActionOnCell: function(aAction, aRow, aCol) {}
         });
       ]]></field>
 
     </implementation>
 
     <handlers>
       <handler event="input"
-               action="this.processInput();"/>
+               action="if (!this.ignoreInputEvent) this.processInput();"/>
 
       <handler event="keydown" phase="capturing"
                 action="return this.processKeyDown(event);"/>
 
       <handler event="keypress" phase="capturing"
                 action="return this.processKeyPress(event);"/>
 
       <handler event="compositionstart" phase="capturing"