Search with enter

This commit is contained in:
M66B
2021-08-06 10:29:20 +02:00
parent 1905fbdcf1
commit ef09fb061e

View File

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