fix for custom color error
• [esc] shortcut for closing at document level instead of input element
• mistake in merging of options
• error catching when invalid custom color value is assigned