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.
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.