mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Search with enter
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user