Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
SystemUI: don't submit keyguard password on space key press
Browse files Browse the repository at this point in the history
  • Loading branch information
muhomorr authored and thestinger committed Jun 5, 2024
1 parent d84cb91 commit 1d8179d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public class KeyguardPasswordViewController

private final View.OnKeyListener mKeyListener = (v, keyCode, keyEvent) -> {
final boolean isKeyboardEnterKey = keyEvent != null
// isConfirmKey() returns true for KEYCODE_SPACE
&& keyCode != KeyEvent.KEYCODE_SPACE
&& KeyEvent.isConfirmKey(keyCode)
&& keyEvent.getAction() == KeyEvent.ACTION_UP;
if (isKeyboardEnterKey) {
Expand Down

0 comments on commit 1d8179d

Please sign in to comment.