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

This reset the focus color when the TAB key is pressed.
Merge pull request #1846 from tpruvot/master

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