Show search icon for <input type="search"> fields.
Along with a change to external/webkit, fixes http://b/issue?id=2299650
This commit is contained in:
@@ -338,6 +338,7 @@ import java.util.ArrayList;
|
||||
super.onEditorAction(actionCode);
|
||||
break;
|
||||
case EditorInfo.IME_ACTION_GO:
|
||||
case EditorInfo.IME_ACTION_SEARCH:
|
||||
// Send an enter and hide the soft keyboard
|
||||
InputMethodManager.getInstance(mContext)
|
||||
.hideSoftInputFromWindow(getWindowToken(), 0);
|
||||
@@ -827,6 +828,9 @@ import java.util.ArrayList;
|
||||
case 2: // DONE
|
||||
setImeOptions(EditorInfo.IME_ACTION_DONE);
|
||||
break;
|
||||
case 3: // SEARCH
|
||||
setImeOptions(EditorInfo.IME_ACTION_SEARCH);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE
|
||||
|
||||
Reference in New Issue
Block a user