Fixed: check if the listbox is focused when choosing the foreground color