Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/hid For usb keyboards with encoding *.swapctrlcaps, ...



details:   https://anonhg.NetBSD.org/src/rev/56303048550b
branches:  trunk
changeset: 931229:56303048550b
user:      rhialto <rhialto%NetBSD.org@localhost>
date:      Fri Apr 24 13:29:46 2020 +0000

description:
For usb keyboards with encoding *.swapctrlcaps, keep KS_Cmd1 on the same
key as KS_Control_L. This brings them in line with wskbdmap_mfii.c.

diffstat:

 sys/dev/hid/hidkbdmap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 2617084e6758 -r 56303048550b sys/dev/hid/hidkbdmap.c
--- a/sys/dev/hid/hidkbdmap.c   Fri Apr 24 12:58:42 2020 +0000
+++ b/sys/dev/hid/hidkbdmap.c   Fri Apr 24 13:29:46 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hidkbdmap.c,v 1.2 2020/01/11 21:43:10 nia Exp $        */
+/*     $NetBSD: hidkbdmap.c,v 1.3 2020/04/24 13:29:46 rhialto Exp $    */
 
 /*
  * Copyright (c) 1999,2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hidkbdmap.c,v 1.2 2020/01/11 21:43:10 nia Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hidkbdmap.c,v 1.3 2020/04/24 13:29:46 rhialto Exp $");
 
 #include <sys/types.h>
 #include <dev/wscons/wsksymdef.h>
@@ -279,8 +279,8 @@
 
 Static const keysym_t hidkbd_keydesc_swapctrlcaps[] = {
 /*  pos      command           normal          shifted */
-    KC(57),                    KS_Control_L,
-    KC(224), KS_Cmd1,          KS_Caps_Lock,
+    KC(57),  KS_Cmd1,          KS_Control_L,
+    KC(224),                   KS_Caps_Lock,
 };
 
 Static const keysym_t hidkbd_keydesc_de[] = {



Home | Main Index | Thread Index | Old Index