Click events with EMouseCaptureMode::CaptureDuringRightMouseDown

Hi, Guys.

I need to do with the InputModeGameAndUIOnly (I need clicks on actors in the world and widget clicks together) disable viewport capture on lmb and mmb. For this I set EMouseCaptureMode::CaptureDuringRightMouseDown in Player controller but it work incorrectly - bool InputKey() pressed state skipped when I clicked on actors in world (or viewport) and calling only when I release it with EInputEvent::IE_Released.

Does anyone know how workaround this issue?