Fix search when a tab it pressed.