Bug 907520 - Close soft keyboard when findbar closes. r=mbrubeck
authorMarina Samuel <msamuel@mozilla.com>
Fri, 23 Aug 2013 16:47:13 -0400
changeset 144080 39301b836507f0aa3d63a9e9e40c728239341c69
parent 144079 1a8030bb148e6b8ed0d8b99de8cc415540e54caf
child 144081 7e7605f5e1c67f6d5ddd361c14456a7d4638ed60
push id2336
push usermsamuel@mozilla.com
push dateFri, 23 Aug 2013 20:45:25 +0000
treeherderfx-team@39301b836507 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs907520
milestone26.0a1
Bug 907520 - Close soft keyboard when findbar closes. r=mbrubeck
browser/metro/base/content/helperui/FindHelperUI.js
--- a/browser/metro/base/content/helperui/FindHelperUI.js
+++ b/browser/metro/base/content/helperui/FindHelperUI.js
@@ -135,23 +135,23 @@ var FindHelperUI = {
   hide: function findHelperHide() {
     if (!this._open)
       return;
 
     let onTransitionEnd = () => {
       this._container.removeEventListener("transitionend", onTransitionEnd, true);
       this._textbox.value = "";
       this.status = null;
-      this._textbox.blur();
       this._open = false;
 
       // Restore the scroll synchronisation
       Browser.selectedBrowser.scrollSync = true;
     };
 
+    this._textbox.blur();
     this._container.addEventListener("transitionend", onTransitionEnd, true);
     this._container.dismiss();
     Elements.browsers.removeAttribute("findbar");
   },
 
   goToPrevious: function findHelperGoToPrevious() {
     this._textbox.blur();
     Browser.selectedBrowser.messageManager.sendAsyncMessage("FindAssist:Previous", { });