add-ons/input_server: Fix PadBlocker blocking on key repeat

PadBlocker wasn't handling key repeats, so once key repeat started
kicking in, it would register it as keypress and consequently block any
B_MOUSE_DOWN event that followed.

Fixes #19238 and possibly #17821.

Change-Id: I1dccca5a31021866a61aa95bbeecfb0ba37facac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8532
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
This commit is contained in:
Gustaf Alhäll 2024-11-09 16:04:54 +01:00 committed by waddlesplash
parent 8776466030
commit 115a635f13

View File

@ -155,7 +155,8 @@ filter_result PadBlocker::Filter(BMessage *message, BList *outList)
{
case B_KEY_UP: case B_KEY_DOWN:
{
_lastKeyUp = system_time(); //update timestamp
if (!message->HasInt32("be:key_repeat"))
_lastKeyUp = system_time(); //update timestamp
break;
}