mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(dview_handle_key): refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d68c5c7e13
commit
d12caa65d0
@ -3290,11 +3290,10 @@ dview_handle_key (WDiff * dview, int key)
|
||||
#endif
|
||||
|
||||
command = widget_lookup_key (WIDGET (dview), key);
|
||||
if ((command != CK_IgnoreKey) && (dview_execute_cmd (dview, command) == MSG_HANDLED))
|
||||
return MSG_HANDLED;
|
||||
|
||||
/* Key not used */
|
||||
if (command == CK_IgnoreKey)
|
||||
return MSG_NOT_HANDLED;
|
||||
|
||||
return dview_execute_cmd (dview, command);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user