issue #1778: prevent delayed focus when the list in hidden

This reset the focus color when the TAB key is pressed.