Bug 570603 - Autocomplete should search while composing on Android [r=mfinkle]
authorJim Chen <jchen@mozilla.com>
Thu, 22 Jul 2010 15:42:41 -0400
changeset 66387 74ece844d129d2c29062b24d231ca5182cf952a2
parent 66386 cc42913918da92cfcdccd5a62fc1ac6402137c8a
child 66388 ad8ebd40ccd6ee48442ddd4c1da025c27a0052ca
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs570603
Bug 570603 - Autocomplete should search while composing on Android [r=mfinkle]
mobile/chrome/content/bindings.xml
--- a/mobile/chrome/content/bindings.xml
+++ b/mobile/chrome/content/bindings.xml
@@ -35,16 +35,18 @@
       <handler event="keypress" keycode="VK_RETURN" phase="capturing">
         <![CDATA[
           if (this.popup.allBookmarksItemSelected) {
             this.popup.closePopup();
             CommandUpdater.doCommand("cmd_bookmarks");
           }
         ]]>
       </handler>
+      <handler event="text" phase="bubbling"
+               action="if (this.mController.input == this) this.mController.handleText();"/>
     </handlers>
   </binding>
 
   <binding id="popup_autocomplete_result">
     <content orient="vertical">
       <xul:hbox class="autocomplete-item-label" align="top" xbl:inherits="tags, favorite" mousethrough="always">
         <xul:image xbl:inherits="src"/>
         <xul:vbox flex="1">