mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 03:02:06 +03:00
* main.c (midnight_callback): Don't handle any events except
Ctrl-x combinations on DLG_KEY event if the menu is active.
This commit is contained in:
parent
6c17a59440
commit
1cd140d5dc
@ -1,5 +1,8 @@
|
||||
2001-07-05 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* main.c (midnight_callback): Don't handle any events except
|
||||
Ctrl-x combinations on DLG_KEY event if the menu is active.
|
||||
|
||||
* main.c (load_prompt): Don't change prompt if midnight_dlg is
|
||||
not the current dialog.
|
||||
|
||||
|
@ -1994,7 +1994,11 @@ midnight_callback (struct Dlg_head *h, int id, int msg)
|
||||
}
|
||||
|
||||
#ifndef HAVE_X
|
||||
if (id == KEY_F(10) && !the_menubar->active){
|
||||
/* FIXME: should handle all menu shortcuts before this point */
|
||||
if (the_menubar->active)
|
||||
break;
|
||||
|
||||
if (id == KEY_F(10)){
|
||||
quit_cmd ();
|
||||
return MSG_HANDLED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user