mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-05 19:14:27 +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
|
#endif
|
||||||
|
|
||||||
command = widget_lookup_key (WIDGET (dview), key);
|
command = widget_lookup_key (WIDGET (dview), key);
|
||||||
if ((command != CK_IgnoreKey) && (dview_execute_cmd (dview, command) == MSG_HANDLED))
|
if (command == CK_IgnoreKey)
|
||||||
return MSG_HANDLED;
|
|
||||||
|
|
||||||
/* Key not used */
|
|
||||||
return MSG_NOT_HANDLED;
|
return MSG_NOT_HANDLED;
|
||||||
|
|
||||||
|
return dview_execute_cmd (dview, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user