Ticket #2405: fixed key event handling in "Listing mode" dialog.

Typing 'u' in "User defined mode" input line, the "User defined"
radio-button is checked instead of putting the 'u' letter
into the input line.

Bug was introduced in 80d34ca625.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-11-01 22:11:56 +03:00
parent 5468707bc6
commit 50ba1adca4
1 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,8 @@ display_callback (Dlg_head * h, Widget * sender, dlg_msg_t msg, int parm, void *
}
}
if (g_ascii_tolower (parm) == display_user_hotkey)
if ((g_ascii_tolower (parm) == display_user_hotkey)
&& dlg_widget_active (display_user_format) && dlg_widget_active (display_mini_status))
{
display_radio->pos = display_radio->sel = 3;
dlg_select_widget (display_radio); /* force redraw */