* 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:
Pavel Roskin 2001-07-05 23:27:01 +00:00
parent 6c17a59440
commit 1cd140d5dc
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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;
}