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 <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
Gustaf Alhäll
2024-11-11 17:28:48 +00:00
committed by waddlesplash
parent 8776466030
commit 115a635f13
@@ -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;
}