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:
Leon Scroggins
2009-12-04 14:50:18 -05:00
parent 7c42703082
commit 9e3e2d3a69

View File

@@ -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