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

Commit be660049 authored by Ben Kwa's avatar Ben Kwa
Browse files

Revert "Handle spacebar events."

This reverts commit ef8eb5c9.

Change-Id: I6c473d09eae8289da1deb86a8f043aa88de4c6f0
parent ef8eb5c9
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -54,18 +54,6 @@ class FocusManager implements View.OnFocusChangeListener {
     * @return Whether the event was handled.
     */
    public boolean handleKey(DocumentHolder doc, int keyCode, KeyEvent event) {
        boolean extendSelection = false;
        // Translate space/shift-space into PgDn/PgUp
        if (keyCode == KeyEvent.KEYCODE_SPACE) {
            if (event.isShiftPressed()) {
                keyCode = KeyEvent.KEYCODE_PAGE_UP;
            } else {
                keyCode = KeyEvent.KEYCODE_PAGE_DOWN;
            }
        } else {
            extendSelection = event.isShiftPressed();
        }

        if (Events.isNavigationKeyCode(keyCode)) {
            // Find the target item and focus it.
            int endPos = findTargetPosition(doc.itemView, keyCode, event);