If you mean in focusInEvent, focusOutEvent and keyPressEvent? - then yes.

In my scene I've also just removed all functions and overrides that may affect focus (mouse event handers etc)...but no joy.