wayland touch event to add key modifier

Add touch event keyboard modifier for wayland, which is done in qpa
xcb, which is very convenient on tablets with keyboards.

Change-Id: I4e6ed369f3444da41d06f9a9a83addf7de0a4e91
Reviewed-by: Povilas Kanapickas <povilas@radix.lt>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Tang Haixiang 2022-01-13 15:09:46 +08:00
parent 05fefdbf57
commit 1df3c996e8

View File

@ -1524,7 +1524,7 @@ void QWaylandInputDevice::Touch::touch_frame()
return;
}
QWindowSystemInterface::handleTouchEvent(window, mParent->mTouchDevice, mPendingTouchPoints);
QWindowSystemInterface::handleTouchEvent(window, mParent->mTouchDevice, mPendingTouchPoints, mParent->modifiers());
// Prepare state for next frame
const auto prevTouchPoints = mPendingTouchPoints;