Krita 5.2 is released!

If you are referring to Layer selection from menu I tried “Use mouse events for right- and middle-clicks” in Tablet settings (restarted Krita), then worked for me with stylus.