I would recommend forcing the user to select the edit box, then allow them to select the color code.

After they select the edit box, you can store that ID in a variable and enable the Icon ID while disabling the ID's for the edit boxes.
After they select the color code, disable the Icon ID, and re-enable the edit box ID's.

Since you'll be forcing the color selection after the edit box has been selected, you can use /did -f <Icon_ID> to put the focus on the Icon ID automatically.