QuickView shouldn't consume all keys.

The QuickView should return MSG_HANDLED, in its MSG_KEY, *only* for keys it has
indeed handled.

We move the "don't pass any chars to command line" responsibility to the main
dialog instead.

(We're reverting commit 8469c13f38 here.)

Signed-off-by: Mooffie <mooffie@gmail.com>
This commit is contained in:
Mooffie 2017-04-24 08:53:00 +03:00
parent 16c9ec0108
commit e90eea874d
2 changed files with 2 additions and 3 deletions

View File

@ -1569,7 +1569,7 @@ midnight_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void
if (command != CK_IgnoreKey)
v = midnight_execute_cmd (NULL, command);
if (v == MSG_NOT_HANDLED && command_prompt)
if (v == MSG_NOT_HANDLED && command_prompt && !is_cmdline_mute ())
v = send_message (cmdline, NULL, MSG_KEY, parm, NULL);
return v;

View File

@ -674,8 +674,7 @@ mcview_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
case MSG_KEY:
i = mcview_handle_key (view, parm);
mcview_update (view);
/* don't pass any chars to command line in QuickView mode */
return mcview_is_in_panel (view) ? MSG_HANDLED : i;
return i;
case MSG_ACTION:
i = mcview_execute_cmd (view, parm);