child user: Show error state on ParentAccessView

Error state is shown after unsuccessful access code validation
and cleared when user changes input (deletes or updates input
field content).

Backspace behavior was updated accordingly. Pressing backspace
when input field has text deletes the text but does not move
focus to the previous field. Pressing backspace on empty input
field moves focus to the previous field.

Bug: 911326
Test: ParentAccessViewTest
Change-Id: I2860c0d02dee6f7aba95fcdaaa3271b98a25c07c
Commit-Queue: Aga Wronska <>
Reviewed-by: Xiyuan Xia <>
Reviewed-by: Michael Giuffrida <>
Cr-Commit-Position: refs/heads/master@{#635751}
5 files changed