From 445d0572487527ff7304230803289c35981c6179 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 25 Feb 1994 05:36:51 +0000 Subject: [PATCH] Don't repeat lock keys in X, either. --- sys/arch/i386/isa/pccons.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/arch/i386/isa/pccons.c b/sys/arch/i386/isa/pccons.c index d10fdc98b63d..1aa6ae09b4d6 100644 --- a/sys/arch/i386/isa/pccons.c +++ b/sys/arch/i386/isa/pccons.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)pccons.c 5.11 (Berkeley) 5/21/91 - * $Id: pccons.c,v 1.48 1994/02/25 05:15:31 mycroft Exp $ + * $Id: pccons.c,v 1.49 1994/02/25 05:36:51 mycroft Exp $ */ /* @@ -1554,6 +1554,8 @@ top: shift_state &= ~NUM; break; } + if (shift_state & NUM) + break; shift_state |= NUM; lock_state ^= NUM; async_update(); @@ -1563,6 +1565,8 @@ top: shift_state &= ~CAPS; break; } + if (shift_state & CAPS) + break; shift_state |= CAPS; lock_state ^= CAPS; async_update(); @@ -1572,6 +1576,8 @@ top: shift_state &= ~SCROLL; break; } + if (shift_state & SCROLL) + break; shift_state |= SCROLL; lock_state ^= SCROLL; if ((lock_state & SCROLL) == 0)