diff options
author | Joel Kitching <kitching@google.com> | 2020-05-22 17:06:55 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-27 06:23:02 +0000 |
commit | 319412dcce177b2cd2f1d4c5ea94506905a8cc27 (patch) | |
tree | 63ef3f2321d00815d5790fa1109bea30fc3a8036 /firmware/2lib/2ui.c | |
parent | 155768764b9897447d1159cc7cc6791369ca2fc5 (diff) | |
download | vboot-319412dcce177b2cd2f1d4c5ea94506905a8cc27.tar.gz |
vboot/ui: map Ctrl+S to the TO_NORM screen
Add hotkey to simplify FAFT mode_switcher for new Groot UI.
BUG=b:146399181
TEST=make clean && make runtests
BRANCH=none
Change-Id: I91e00c5365c8f5a587786ab7dcfa67765a342824
Signed-off-by: Joel Kitching <kitching@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2213384
Reviewed-by: Hsuan Ting Chen <roccochen@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Tested-by: Joel Kitching <kitching@chromium.org>
Commit-Queue: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'firmware/2lib/2ui.c')
-rw-r--r-- | firmware/2lib/2ui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/2lib/2ui.c b/firmware/2lib/2ui.c index c0b527b6..14507ec9 100644 --- a/firmware/2lib/2ui.c +++ b/firmware/2lib/2ui.c @@ -284,6 +284,8 @@ vb2_error_t vb2_developer_menu(struct vb2_context *ctx) vb2_error_t developer_action(struct vb2_ui_context *ui) { /* Developer mode keyboard shortcuts */ + if (ui->key == VB_KEY_CTRL('S')) + return vb2_ui_change_screen(ui, VB2_SCREEN_DEVELOPER_TO_NORM); if (ui->key == VB_KEY_CTRL('U') || (DETACHABLE && ui->key == VB_BUTTON_VOL_UP_LONG_PRESS)) return vb2_ui_developer_mode_boot_external_action(ui); |