[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] Count "logo" keys as modifier keys
From: |
Brad Jorsch |
Subject: |
[Qemu-devel] [PATCH 2/2] Count "logo" keys as modifier keys |
Date: |
Wed, 5 May 2010 00:17:09 -0400 |
These are often mapped to Meta on Linux. And I for one use Meta-Tab as
the equivalent of Windows's Alt-Tab, so not having it marked as a
modifier leaves the guest thinking it's permanently pressed.
Signed-off-by: Brad Jorsch <address@hidden>
---
sdl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sdl.c b/sdl.c
index c155113..cc7b1bb 100644
--- a/sdl.c
+++ b/sdl.c
@@ -385,6 +385,8 @@ static void sdl_process_key(SDL_KeyboardEvent *ev)
case 0x9d: /* Right CTRL */
case 0x38: /* Left ALT */
case 0xb8: /* Right ALT */
+ case 0xdb: /* Left META */
+ case 0xdc: /* Right META */
if (ev->type == SDL_KEYUP)
modifiers_state[keycode] = 0;
else
--
1.7.1