summaryrefslogtreecommitdiff
path: root/firmware/lib
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2018-02-07 15:36:41 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-02-08 01:24:36 -0800
commitdff3a8544b09d54cce487b215a8713d4594c834b (patch)
treedd7b9c5072df3318c418bc41edff30ee6ac1554a /firmware/lib
parent01b50c46bcff65524adacdcce91732e682f906e2 (diff)
downloadvboot-dff3a8544b09d54cce487b215a8713d4594c834b.tar.gz
detachables: Allow 'Tab' to display debug info on all screens
Since we're continuing to support the boot shortcuts Ctrl+D, Ctrl+U and Ctrl+L, it makes sense to also continue to support the debug info shortcut Tab, just in case somebody may want to use it from an external keyboard. This does not affect the existing method to display debug info through the appropriate menu option in any way. BRANCH=None BUG=b:73080278 TEST=make runtests, booted Scarlet and pressed Tab on UART. Change-Id: Ia08404e0ffd1f8cac3d85f3b2fc4ce17a21d743d Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/907759 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'firmware/lib')
-rw-r--r--firmware/lib/vboot_ui_menu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/lib/vboot_ui_menu.c b/firmware/lib/vboot_ui_menu.c
index bc7ff83b..050051ce 100644
--- a/firmware/lib/vboot_ui_menu.c
+++ b/firmware/lib/vboot_ui_menu.c
@@ -589,6 +589,9 @@ static VbError_t vb2_handle_menu_input(struct vb2_context *ctx,
case 0:
/* nothing pressed */
break;
+ case '\t':
+ /* Tab = display debug info */
+ return debug_info_action(ctx);
case VB_KEY_UP:
case VB_KEY_DOWN:
case VB_BUTTON_VOL_UP_SHORT_PRESS: