qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 4/7] sdl2: Only accept the hotkeys on the main w


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 4/7] sdl2: Only accept the hotkeys on the main window
Date: Wed, 01 Nov 2017 11:40:30 +0100

Why?

> ---
>  ui/sdl2.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ui/sdl2.c b/ui/sdl2.c
> index 685e4fabec..fa54353430 100644
> --- a/ui/sdl2.c
> +++ b/ui/sdl2.c
> @@ -349,7 +349,7 @@ static void handle_keydown(SDL_Event *ev)
>      }
>      gui_key_modifier_pressed = mod_state;
>  
> -    if (gui_key_modifier_pressed) {
> +    if (gui_key_modifier_pressed && !ev->key.repeat &&
> qemu_console_is_graphic(scon->dcl.con)) {
>          switch (ev->key.keysym.scancode) {
>          case SDL_SCANCODE_2:
>          case SDL_SCANCODE_3:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]