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

Commit da0859af authored by Alexander Hendrich's avatar Alexander Hendrich
Browse files

[flexiglass] Fix lost focus on PIN input

When entering a PIN via keyboard, the keyDown event for the enter key resulted in the PinBouncer's VerticalGrid to lose focus and instead focus the next element, which is the first digit in the pin pad. Entering additional numbers still worked, but the enter key on that digit was consumed (resulting in the digit being entered). This prevented submitting the PIN by pressing enter again.

With this change, we also consume the keyDown event for the enter key and therefore don't pass on focus. Consecutive key presses for the enter key are still handled via PinBouncerViewModel's onKeyEvent() like expected then.

Fixes: 413013914
Flag: com.android.systemui.scene_container
Test: atest PinBouncerViewModelTest
Change-Id: Ia56187f23c436df661a43f540f9d42753aca3d24
parent 86238deb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment