From 74e46018ef8b5ae1d3571ae991bc26532b1d8afe Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 15 Jul 2007 21:40:04 +0000 Subject: [PATCH] Ignore key events with unknown keysyms. --- v7/src/microcode/x11base.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. */ -- 2.25.1