Bug 772449 - Dismiss VKB when up/down arrows are tapped for Find in Page. r=mfinkle
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Wed, 26 Sep 2012 08:47:48 -0700
changeset 108148 6351566e60838680b216e7b3bdbd970904ed9fbd
parent 108147 20169e3f33b350e251a8c228a140c5afa51f25e4
child 108149 29fe3da0ea11d3c6a050fc6fdf2e1a1fd4c17bd7
push id23539
push userryanvm@gmail.com
push dateWed, 26 Sep 2012 22:55:55 +0000
treeherdermozilla-central@ec079fd92224 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs772449
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 772449 - Dismiss VKB when up/down arrows are tapped for Find in Page. r=mfinkle
mobile/android/base/FindInPageBar.java
--- a/mobile/android/base/FindInPageBar.java
+++ b/mobile/android/base/FindInPageBar.java
@@ -103,18 +103,20 @@ public class FindInPageBar extends Relat
     }
 
     // View.OnClickListener implementation
 
     public void onClick(View v) {
         switch (v.getId()) {
             case R.id.find_prev:
                 GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("FindInPage:Prev", mFindText.getText().toString()));
+                getInputMethodManager(mFindText).hideSoftInputFromWindow(mFindText.getWindowToken(), 0);
                 break;
             case R.id.find_next:
                 GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("FindInPage:Next", mFindText.getText().toString()));
+                getInputMethodManager(mFindText).hideSoftInputFromWindow(mFindText.getWindowToken(), 0);
                 break;
             case R.id.find_close:
                 hide();
                 break;
         }
     }
 }