I find it annoying that the gesture detector doesn...
# compose-desktop
h
I find it annoying that the gesture detector doesn't provide information on keyboard status. This would be useful for combined keyboard and mouse actions in desktop applications. I've duplicated and modified the detector code, but I think it would be something to improve in Jetpack Compose.
Copy code
suspend fun PointerInputScope.detectTapGesturesEx(
    onDoubleTap: ((Offset, PointerKeyboardModifiers) -> Unit)? = null,
    onLongPress: ((Offset, PointerKeyboardModifiers) -> Unit)? = null,
    onPress: suspend PressGestureScope.(Offset, PointerKeyboardModifiers) -> Unit = NoPressGesture,
    onTap: ((Offset, PointerKeyboardModifiers) -> Unit)? = null
) = coroutineScope {...}
z
Feel free to file a feature request
h
Alexander put me on the right track in the message just after mine.