qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Brad Jorsch <anomie@users.sourceforge.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/2] Count "logo" keys as modifier keys
Date: Wed,  5 May 2010 00:17:09 -0400	[thread overview]
Message-ID: <1273033029-15622-3-git-send-email-anomie@users.sourceforge.net> (raw)
In-Reply-To: <1273033029-15622-1-git-send-email-anomie@users.sourceforge.net>

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 <anomie@users.sourceforge.net>
---
 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

  parent reply	other threads:[~2010-05-05  4:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-05  4:17 [Qemu-devel] [PATCH 0/2] Release modifier keys (including Meta) on loss of focus Brad Jorsch
2010-05-05  4:17 ` [Qemu-devel] [PATCH 1/2] Fix clearing modifiers on focus loss Brad Jorsch
2010-05-05  4:17 ` Brad Jorsch [this message]
2010-05-05 19:42   ` [Qemu-devel] [PATCH 2/2] Count "logo" keys as modifier keys Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1273033029-15622-3-git-send-email-anomie@users.sourceforge.net \
    --to=anomie@users.sourceforge.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).