mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
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:
parent
16c9ec0108
commit
e90eea874d
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user