(dview_handle_key): refactoring.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2020-04-09 07:58:52 +03:00
parent d68c5c7e13
commit d12caa65d0

View File

@ -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);
}
/* --------------------------------------------------------------------------------------------- */