* widget.c (input_callback) [HAVE_X]: Disable Ctrl-q - it

doesn't work.
This commit is contained in:
Pavel Roskin 2001-07-20 16:34:05 +00:00
parent 2dd2dc2182
commit d866874b24
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2001-07-20 Pavel Roskin <proski@gnu.org> 2001-07-20 Pavel Roskin <proski@gnu.org>
* widget.c (input_callback) [HAVE_X]: Disable Ctrl-q - it
doesn't work.
* file.c (panel_get_file): Use g_assert_not_reached(). * file.c (panel_get_file): Use g_assert_not_reached().
* key.c (xgetch_second): Make static. * key.c (xgetch_second): Make static.

View File

@ -1650,6 +1650,7 @@ input_callback (Dlg_head *h, WInput *in, int Msg, int Par)
return x_create_input (h, h->wdata, in); return x_create_input (h, h->wdata, in);
case WIDGET_KEY: case WIDGET_KEY:
#ifndef HAVE_X
if (Par == XCTRL('q')){ if (Par == XCTRL('q')){
int v; int v;
@ -1658,6 +1659,7 @@ input_callback (Dlg_head *h, WInput *in, int Msg, int Par)
quote = 0; quote = 0;
return v; return v;
} }
#endif /* !HAVE_X */
if (Par == KEY_UP || Par == KEY_DOWN || if (Par == KEY_UP || Par == KEY_DOWN ||
Par == ESC_CHAR || Par == KEY_F(10) || Par == ESC_CHAR || Par == KEY_F(10) ||
Par == XCTRL('g')) Par == XCTRL('g'))
@ -1678,7 +1680,7 @@ input_callback (Dlg_head *h, WInput *in, int Msg, int Par)
case WIDGET_CURSOR: case WIDGET_CURSOR:
widget_move (&in->widget, 0, in->point - in->first_shown); widget_move (&in->widget, 0, in->point - in->first_shown);
return 1; return 1;
#endif #endif /* !HAVE_X */
} }
return default_proc (h, Msg, Par); return default_proc (h, Msg, Par);