diff options
author | 2014-01-26 17:48:07 +0000 | |
---|---|---|
committer | 2014-01-26 17:48:07 +0000 | |
commit | c8b0a2fb851e142bda8f251ec04b2757bf5075da (patch) | |
tree | 003ff39c2f1f8de8ae47cbb770a83fc9b5c5a2b8 /sys/dev/sun/sunkbdmap.c | |
parent | Work in progress work towards SMP, heavily based upon NetBSD. The MP kernel (diff) | |
download | wireguard-openbsd-c8b0a2fb851e142bda8f251ec04b2757bf5075da.tar.xz wireguard-openbsd-c8b0a2fb851e142bda8f251ec04b2757bf5075da.zip |
Attempt to make user changes of keyboard layout a bit more `sticky' on wsmux
kernels:
- keyboard drivers will now tell wskbd if the keyboard layout they ask
for is a default value, or a value they are 100% sure of (either
because your kernel has a XXXKBD_LAYOUT option, or because the
driver can tell the keyboard layout, e.g. by the country code on USB
keyboards which provide it, such as Sun's)
- when attaching a keyboard with a non-default layout, the layout will
become the default layout of the mux for new keyboard attachments if
the mux doesn't have a layout set already.
- when changing the keyboard layout of a particular keyboard with an
ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the
default layout of the mux for new keyboard attachments.
ok mpi@
Diffstat (limited to 'sys/dev/sun/sunkbdmap.c')
-rw-r--r-- | sys/dev/sun/sunkbdmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sun/sunkbdmap.c b/sys/dev/sun/sunkbdmap.c index 03f80caae43..b37cf6724c9 100644 --- a/sys/dev/sun/sunkbdmap.c +++ b/sys/dev/sun/sunkbdmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sunkbdmap.c,v 1.5 2012/11/29 14:51:27 shadchin Exp $ */ +/* $OpenBSD: sunkbdmap.c,v 1.6 2014/01/26 17:48:08 miod Exp $ */ /* * Copyright (c) 2002, 2003 Miodrag Vallat. @@ -1162,7 +1162,7 @@ struct wskbd_mapdata sunkbd_keymapdata = { #ifdef SUNKBD_LAYOUT SUNKBD_LAYOUT, #else - KB_US, + KB_US | KB_DEFAULT, #endif }; @@ -1171,6 +1171,6 @@ struct wskbd_mapdata sunkbd5_keymapdata = { #ifdef SUNKBD5_LAYOUT SUNKBD5_LAYOUT, #else - KB_US, + KB_US | KB_DEFAULT, #endif }; |