1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Fix focus issue with the 'Toggle display' button in the keybindings manager

Don't call clear_dialog, which sets the focus to the listbox.  Neither the
button widget nor the listbox widget has a clear callback, and the only
other thing that clear_dialog does is focus the first widget and redraw, so
call redraw_dialog instead.

Thanks to Kalle Olavi Niemitalo for noticing the issue.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-06-24 08:22:24 +00:00 committed by Miciah Dashiel Butler Masters
parent 76f3dc99b3
commit 7a9b9f8171

View File

@ -920,7 +920,7 @@ push_kbdbind_toggle_display_button(struct dialog_data *dlg_data,
{
#ifndef CONFIG_SMALL
keybinding_text_toggle = !keybinding_text_toggle;
clear_dialog(dlg_data, some_useless_info_button);
redraw_dialog(dlg_data, 0);
#endif
return EVENT_PROCESSED;
}