0006-Don-t-bind-the-arrow-keys-to-localization-changes.-S.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From 17ec26d21e5fef11ebdafbd268783d397370c62b Mon Sep 17 00:00:00 2001
  2. From: Hal Emmerich <hal@halemmerich.com>
  3. Date: Sun, 8 Dec 2019 22:34:39 -0600
  4. Subject: [PATCH] Don't bind the arrow keys to localization changes. Since we
  5. are using a text based interface, localization changes have no effect and
  6. cause the screen to flicker
  7. ---
  8. firmware/lib/vboot_ui.c | 5 -----
  9. 1 file changed, 5 deletions(-)
  10. diff --git a/firmware/lib/vboot_ui.c b/firmware/lib/vboot_ui.c
  11. index 8fef5593..5f891013 100644
  12. --- a/firmware/lib/vboot_ui.c
  13. +++ b/firmware/lib/vboot_ui.c
  14. @@ -144,7 +144,6 @@ int VbUserConfirms(struct vb2_context *ctx, uint32_t confirm_flags)
  15. return 1;
  16. }
  17. }
  18. - VbCheckDisplayKey(ctx, key);
  19. }
  20. VbExSleepMs(CONFIRM_KEY_DELAY);
  21. }
  22. @@ -385,7 +384,6 @@ developer_mode_screen:
  23. break;
  24. default:
  25. VB2_DEBUG("VbBootDeveloper() - pressed key %d\n", key);
  26. - VbCheckDisplayKey(ctx, key);
  27. break;
  28. }
  29. } while(hold || vb2_audio_looping());
  30. @@ -454,7 +452,6 @@ static VbError_t recovery_ui(struct vb2_context *ctx)
  31. VB2_DEBUG("VbBootRecovery() waiting for manual recovery\n");
  32. while (1) {
  33. key = VbExKeyboardRead();
  34. - VbCheckDisplayKey(ctx, key);
  35. if (VbWantShutdown(ctx, key))
  36. return VBERROR_SHUTDOWN_REQUESTED;
  37. VbExSleepMs(REC_KEY_DELAY);
  38. @@ -547,8 +544,6 @@ static VbError_t recovery_ui(struct vb2_context *ctx)
  39. i = 4;
  40. break;
  41. }
  42. - } else {
  43. - VbCheckDisplayKey(ctx, key);
  44. }
  45. if (VbWantShutdown(ctx, key))
  46. return VBERROR_SHUTDOWN_REQUESTED;
  47. --
  48. 2.20.1