Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c17bb1ff authored by Ben Kwa's avatar Ben Kwa Committed by android-build-merger
Browse files

Merge "Handle shift-enter key events." into nyc-dev

am: 844674f9

* commit '844674f9':
  Handle shift-enter key events.
parents 833ef4c2 844674f9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -101,7 +101,6 @@ import com.android.documentsui.model.RootInfo;
import com.android.documentsui.services.FileOperationService;
import com.android.documentsui.services.FileOperationService.OpType;
import com.android.documentsui.services.FileOperations;

import com.google.common.collect.Lists;

import java.lang.annotation.Retention;
@@ -1267,8 +1266,12 @@ public class DirectoryFragment extends Fragment implements DocumentsAdapter.Envi

            // Handle enter key events
            if (keyCode == KeyEvent.KEYCODE_ENTER) {
                if (event.isShiftPressed()) {
                    return onSelect(doc);
                } else {
                    return onActivate(doc);
                }
            }

            return false;
        }