mirror of https://github.com/M66B/FairEmail.git
Search with enter
This commit is contained in:
parent
1905fbdcf1
commit
ef09fb061e
|
@ -520,7 +520,8 @@ public class FragmentDialogSearch extends FragmentDialogBase {
|
|||
|
||||
etQuery.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
||||
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
||||
if (actionId == EditorInfo.IME_ACTION_GO) {
|
||||
if (actionId == EditorInfo.IME_ACTION_GO ||
|
||||
event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {
|
||||
dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue