mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
server: Fix repeated key for no reason
This commit is contained in:
parent
01ff2f4a27
commit
4c68b232fb
1 changed files with 2 additions and 3 deletions
|
@ -2433,11 +2433,10 @@ static int queue_keyboard_message( struct desktop *desktop, user_handle_t win, c
|
|||
}
|
||||
}
|
||||
|
||||
if (origin == IMO_HARDWARE)
|
||||
if ((origin == IMO_HARDWARE) && (input->kbd.scan == desktop->key_repeat.input.kbd.scan))
|
||||
{
|
||||
/* if the repeat key is released, stop auto-repeating */
|
||||
if (((input->kbd.flags & KEYEVENTF_KEYUP) &&
|
||||
(input->kbd.scan == desktop->key_repeat.input.kbd.scan)))
|
||||
if (input->kbd.flags & KEYEVENTF_KEYUP)
|
||||
{
|
||||
stop_key_repeat( desktop );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue