Performance: remove un-needed call to repaint on focus out (WTF?)
Set selection background/foreground when reseting the palette