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

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