diff --git a/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java b/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java index de3bb9efe1..7e3e392a87 100644 --- a/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java +++ b/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java @@ -118,8 +118,14 @@ public class AllAppsSearchBarController @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { - if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_GO) { - Log.i(TAG, "User tapped ime search button"); + if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_GO || ( + actionId == EditorInfo.IME_NULL && event != null + && event.getAction() == KeyEvent.ACTION_DOWN)) { + if (actionId == EditorInfo.IME_NULL) { + Log.i(TAG, "User pressed ENTER key"); + } else { + Log.i(TAG, "User tapped ime search button"); + } // selectFocusedView should return SearchTargetEvent that is passed onto onClick return mLauncher.getAppsView().getMainAdapterProvider().launchHighlightedItem(); }