id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3160	Dialog hotfocus color misused in listbox	egmont		"The highlighted item in listboxes use DLG_COLOR_HOT_FOCUS if the widget is focused, and DLG_COLOR_FOCUS if the widget is not focused.

This is clearly a misuse of the semantics. ""Hot"" is supposed to stand for hotkey (aka. shortcut key) color, a single character within a string. This feature is unused in listboxes. Using the hotkey color for the whole line makes it underlined in the ""sand256"" skin which was not intended there. In #2165 I'm working on a config option to use underline for hotkeys with any skin, this bug is blocking that.

I'm not sure if making a distinction whether the widget is focused or not is important, I don't think so. How can a listbox widget be unfocused at all? If it can be, isn't it obvious by other means (e.g. other window overlapping it?)

I think the right approach is to always use DLG_COLOR_FOCUS. (In this case there's still a confusion that what is called ""focused"" in the skin definiton is ""selected"" in the source, and ""focused"" in the source means something totally different.)

The patch also fixes the ""sand256"" skin, it used to have an explicit underline for popup boxes (e.g. F2 user menu) to make it consistent with the broken listbox (e.g. Alt+H history), it's now removed, from now on underline is used solely for hotkeys in this skin.
"	defect	new	minor	Future Releases	mc-skin	4.8.11				3169		no branch	
