qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Volker Rümelin" <vr_qemu@t-online.de>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Stefan Weil" <sw@weilnetz.de>
Cc: Howard Spoelstra <hsp.cat7@gmail.com>,
	Bernhard Beschow <shentey@gmail.com>,
	qemu-devel@nongnu.org
Subject: SDL2 keyboard fixes on Windows
Date: Mon, 9 Sep 2024 08:12:23 +0200	[thread overview]
Message-ID: <ae9b2c56-dab2-4b8f-bb5e-2087e9ccaa92@t-online.de> (raw)

The Windows keys do not work properly with the SDL backend on Windows.
Patch 1/3 improves the situation. However, it's impossible to solve the
problem completely, as there is no way to grab the Windows keys. The
Windows keys are reserved for the operating system. In addition to
Ctrl-Alt-Del, there are other key combinations such as Win-Space or
Win-L where it's not possible to prevent the operating system from
executing the corresponding functions.

The other two patches prevent stuck modifier keys and unexpected text
input on Windows.

Volker Rümelin (3):
  ui/sdl2: reenable the SDL2 Windows keyboard hook procedure
  ui/sdl2: release all modifiers
  ui/sdl2: ignore GUI keys in SDL_TEXTINPUT handler

 include/ui/sdl2.h   |  2 ++
 ui/sdl2-input.c     |  5 ++++
 ui/sdl2.c           | 71 ++++++++++++++++++++++++++++-----------------
 ui/win32-kbd-hook.c |  3 ++
 4 files changed, 55 insertions(+), 26 deletions(-)

-- 
2.35.3



             reply	other threads:[~2024-09-09  6:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-09  6:12 Volker Rümelin [this message]
2024-09-09  6:15 ` [PATCH 1/3] ui/sdl2: reenable the SDL2 Windows keyboard hook procedure Volker Rümelin
2024-09-09  7:26   ` Marc-André Lureau
2024-09-09  8:02     ` Stefan Weil via
2024-09-09 19:38     ` Volker Rümelin
2024-09-11 11:57       ` Philippe Mathieu-Daudé
2024-09-11 11:59         ` Philippe Mathieu-Daudé
2024-09-11 12:16           ` Bernhard Beschow
2024-12-07 12:46       ` Bernhard Beschow
2024-09-09  6:15 ` [PATCH 2/3] ui/sdl2: release all modifiers Volker Rümelin
2024-09-09  6:15 ` [PATCH 3/3] ui/sdl2: ignore GUI keys in SDL_TEXTINPUT handler Volker Rümelin
2024-09-11 11:19 ` SDL2 keyboard fixes on Windows Bernhard Beschow

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=ae9b2c56-dab2-4b8f-bb5e-2087e9ccaa92@t-online.de \
    --to=vr_qemu@t-online.de \
    --cc=hsp.cat7@gmail.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=shentey@gmail.com \
    --cc=sw@weilnetz.de \
    /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).