From: Gabe Black Date: Wed, 3 Dec 2014 11:06:03 +0000 (-0800) Subject: dev: Support translating left and right ALT keys. X-Git-Tag: stable_2015_04_15~81 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bce58726f35a97ad150e129160c611d6f7ca7417;p=gem5.git dev: Support translating left and right ALT keys. This is used primarily for VNC. --- diff --git a/src/dev/ps2.cc b/src/dev/ps2.cc index dbcdfcaec..0d973ad70 100644 --- a/src/dev/ps2.cc +++ b/src/dev/ps2.cc @@ -174,6 +174,13 @@ keySymToPs2(uint32_t key, bool down, bool &cur_shift, extended = true; keys.push_back(0x14); break; + case XK_Alt_L: + keys.push_back(0x11); + break; + case XK_Alt_R: + extended = true; + keys.push_back(0x11); + break; default: warn("Unknown extended key %#x\n", key); return;