Add KEY_BACK to the default virtio keyboard

This allows simulating a hardware back button in android devices

BUG=b:241614876
TEST=tools/presubmit

Change-Id: I8243cb5f03a23b4c07fc2a4381d8e7362b229fc3
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3817971
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Jorge Moreira Broche <jemoreira@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Auto-Submit: Jorge Moreira Broche <jemoreira@google.com>
Tested-by: Jorge Moreira Broche <jemoreira@google.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
Jorge E. Moreira 2022-08-08 12:04:27 -07:00 committed by crosvm LUCI
parent 073b160755
commit 01ad8e7fad

View file

@ -282,6 +282,7 @@ fn default_keyboard_events() -> BTreeMap<u16, virtio_input_bitmap> {
KEY_MUTE,
KEY_VOLUMEDOWN,
KEY_VOLUMEUP,
KEY_BACK,
]),
);
supported_events.insert(