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

Commit ce2bd0fa authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the numpad wasn't working correctly

Also accepting the enter key now from the numpad as a
confirm key.

Bug: 27108451
Change-Id: I63dbd4b6cad3d2dce74e297dcb7abad9c5e66cbe
parent 3c76d509
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1780,6 +1780,7 @@ public class KeyEvent extends InputEvent implements Parcelable {
            case KeyEvent.KEYCODE_DPAD_CENTER:
            case KeyEvent.KEYCODE_ENTER:
            case KeyEvent.KEYCODE_SPACE:
            case KeyEvent.KEYCODE_NUMPAD_ENTER:
                return true;
            default:
                return false;
+6 −1
Original line number Diff line number Diff line
@@ -93,6 +93,11 @@ public abstract class KeyguardPinBasedInputView extends KeyguardAbsKeyInputView
            performNumberClick(number);
            return true;
        }
        if (keyCode >= KeyEvent.KEYCODE_NUMPAD_0 && keyCode <= KeyEvent.KEYCODE_NUMPAD_9) {
            int number = keyCode - KeyEvent.KEYCODE_NUMPAD_0;
            performNumberClick(number);
            return true;
        }
        return super.onKeyDown(keyCode, event);
    }