Bug 522036: N810: softkb shown after exiting bookmarks manager in manage mode [r=mark.finkle]
authorVivien Nicolas <21@vingtetun.org>
Wed, 21 Oct 2009 22:01:54 -0400
changeset 65699 551ae2d7312a43cb4dec0f72353137d023d808cb
parent 65698 3c64365edb1280f63e0629e5b2613e920b33b20a
child 65700 270759dec1360e8a64d7b044327496560a811ad5
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)
reviewersmark.finkle
bugs522036
Bug 522036: N810: softkb shown after exiting bookmarks manager in manage mode [r=mark.finkle]
mobile/chrome/content/bindings.xml
--- a/mobile/chrome/content/bindings.xml
+++ b/mobile/chrome/content/bindings.xml
@@ -494,16 +494,20 @@
             this._isEditing = false;
             if (this.control) {
               this.control.activeItem.removeAttribute("selected");
               this.control.activeItem = null;
             }
 
             this.updateFields();
 
+            let focusedElement = document.commandDispatcher.focusedElement;
+            if (focusedElement)
+              focusedElement.blur();
+
             let event = document.createEvent("Events");
             event.initEvent("close", true, false);
             this.dispatchEvent(event);
           ]]>
         </body>
       </method>
       <method name="save">
         <body>