firmware/2lib: Skip rest of ui_loop after closing error box

Previously, if we see an error box displayed on the screen, and we hit
return, not only will we exit the error box, but we will also process
the key (ie: return) on the background screen and advance to another
screen.  Correcting this by setting key to 0, thus skipping all the
actions on the background screen in ui_loop() after exiting the error

TEST=dut-control power_state:rec
     press ctrl-d
     press return
     make sure we exit the error box only and don't advanced to the
     next screen

Signed-off-by: Shelley Chen <>
Change-Id: I64f67bb175b4a67a885b368334fb19f4cf288883
Reviewed-by: Yu-Ping Wu <>
Tested-by: Shelley Chen <>
Commit-Queue: Shelley Chen <>
1 file changed