From: Chris Hanson Date: Sun, 15 Jul 2007 21:40:04 +0000 (+0000) Subject: Ignore key events with unknown keysyms. X-Git-Tag: 20090517-FFI~494 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=74e46018ef8b5ae1d3571ae991bc26532b1d8afe;p=mit-scheme.git Ignore key events with unknown keysyms. --- diff --git a/v7/src/microcode/x11base.c b/v7/src/microcode/x11base.c index d6446a9a0..21a48340e 100644 --- a/v7/src/microcode/x11base.c +++ b/v7/src/microcode/x11base.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: x11base.c,v 1.94 2007/04/22 16:31:23 cph Exp $ +$Id: x11base.c,v 1.95 2007/07/15 21:40:04 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -1169,6 +1169,8 @@ key_event (struct xwindow * xw, XKeyEvent * event, enum event_type type) (sizeof (copy_buffer)), (&keysym), (&compose_status))); + if (keysym == NoSymbol) + return (SHARP_F); /* If the BackSpace keysym is received, and XLookupString has translated it into ASCII backspace, substitute ASCII rubout instead. */