am 9e3e2d3a: Show search icon for <input type="search"> fields.
Merge commit '9e3e2d3a6967301730fd383e8b04d53fdfd008e5' into eclair-mr2-plus-aosp * commit '9e3e2d3a6967301730fd383e8b04d53fdfd008e5': Show search icon for <input type="search"> fields.
This commit is contained in:
@@ -338,6 +338,7 @@ import java.util.ArrayList;
|
|||||||
super.onEditorAction(actionCode);
|
super.onEditorAction(actionCode);
|
||||||
break;
|
break;
|
||||||
case EditorInfo.IME_ACTION_GO:
|
case EditorInfo.IME_ACTION_GO:
|
||||||
|
case EditorInfo.IME_ACTION_SEARCH:
|
||||||
// Send an enter and hide the soft keyboard
|
// Send an enter and hide the soft keyboard
|
||||||
InputMethodManager.getInstance(mContext)
|
InputMethodManager.getInstance(mContext)
|
||||||
.hideSoftInputFromWindow(getWindowToken(), 0);
|
.hideSoftInputFromWindow(getWindowToken(), 0);
|
||||||
@@ -827,6 +828,9 @@ import java.util.ArrayList;
|
|||||||
case 2: // DONE
|
case 2: // DONE
|
||||||
setImeOptions(EditorInfo.IME_ACTION_DONE);
|
setImeOptions(EditorInfo.IME_ACTION_DONE);
|
||||||
break;
|
break;
|
||||||
|
case 3: // SEARCH
|
||||||
|
setImeOptions(EditorInfo.IME_ACTION_SEARCH);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE
|
inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE
|
||||||
|
|||||||
Reference in New Issue
Block a user