Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/wscons - call update_modifier() explicitly for the s...



details:   https://anonhg.NetBSD.org/src/rev/5c9d50d23bd9
branches:  trunk
changeset: 448575:5c9d50d23bd9
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Feb 05 10:04:49 2019 +0000

description:
- call update_modifier() explicitly for the scrolling keys up event.

diffstat:

 sys/dev/wscons/wskbd.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r a12338a0a6e2 -r 5c9d50d23bd9 sys/dev/wscons/wskbd.c
--- a/sys/dev/wscons/wskbd.c    Tue Feb 05 09:55:48 2019 +0000
+++ b/sys/dev/wscons/wskbd.c    Tue Feb 05 10:04:49 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wskbd.c,v 1.142 2018/09/18 06:19:28 mrg Exp $ */
+/* $NetBSD: wskbd.c,v 1.143 2019/02/05 10:04:49 mrg Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -105,7 +105,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.142 2018/09/18 06:19:28 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.143 2019/02/05 10:04:49 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1547,7 +1547,9 @@
                        } else {
                                return (0);
                        }
-               }
+               } else
+                       update_modifier(sc->id, *type, 0, MOD_COMMAND);
+               break;
 
        case KS_Cmd_ScrollSlowUp:
        case KS_Cmd_ScrollSlowDown:
@@ -1566,7 +1568,9 @@
                        } else {
                                return (0);
                        }
-               }
+               } else
+                       update_modifier(sc->id, *type, 0, MOD_COMMAND);
+               break;
 #endif
 
        case KS_Cmd:



Home | Main Index | Thread Index | Old Index