Ticket #4142: ctrl-l shortcut (refresh screen) is broken.

This bug was introduced in 2e734e5618.

(dlg_handle_key): fallback to dialog_map if shortcut is not defined in
filemanager/editor/viewer/diffviewer key map.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2020-11-05 18:46:08 +03:00
parent 2225af84f5
commit 258e6bcd57
1 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,8 @@ dlg_handle_key (WDialog * h, int d_key)
long command;
command = widget_lookup_key (WIDGET (h), d_key);
if (command == CK_IgnoreKey)
command = keybind_lookup_keymap_command (dialog_map, d_key);
if (command != CK_IgnoreKey)
return dlg_execute_cmd (h, command);