touchpad: add escape and asterisk to the DWT blacklist
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 14 Nov 2022 17:38:13 +0000 (18:38 +0100)
committerJosé Expósito <jose.exposito89@gmail.com>
Mon, 14 Nov 2022 18:11:12 +0000 (19:11 +0100)
commit0da2d0095cfe3635b5bf8943defe315c4f58d322
tree8b2aab9c9a67b75e04893c56e440b718a6076a7d
parent955a9cc338b7a1d6606a05ab6c0f5b7145806cf2
touchpad: add escape and asterisk to the DWT blacklist

The escape key can be used to cancel a drag and drop action in some
desktop environments. However, it triggers disable-while-typing, ending
the drag and drop action rather than cancelling it.

Add it to the tp_key_ignore_for_dwt() set to avoid it.

Since I'm here, add the asterisk key as it is the only numpad key not
ignored by tp_key_ignore_for_dwt().

Fix: https://gitlab.freedesktop.org/libinput/libinput/-/issues/820  # [1]
Suggested-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
src/evdev-mt-touchpad.c
test/test-touchpad.c