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/hil | |
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/hil')
-rw-r--r-- | sys/dev/hil/hilkbd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hil/hilkbd.c b/sys/dev/hil/hilkbd.c index 7b0a13cf48d..2af64896b61 100644 --- a/sys/dev/hil/hilkbd.c +++ b/sys/dev/hil/hilkbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hilkbd.c,v 1.15 2011/11/09 14:22:37 shadchin Exp $ */ +/* $OpenBSD: hilkbd.c,v 1.16 2014/01/26 17:48:08 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -104,7 +104,7 @@ struct wskbd_mapdata hilkbd_keymapdata = { #ifdef HILKBD_LAYOUT HILKBD_LAYOUT, #else - KB_US, + KB_US | KB_DEFAULT, #endif }; @@ -113,7 +113,7 @@ struct wskbd_mapdata hilkbd_keymapdata_ps2 = { #ifdef HILKBD_LAYOUT HILKBD_LAYOUT, #else - KB_US, + KB_US | KB_DEFAULT, #endif }; |