summaryrefslogtreecommitdiff
path: root/sys/dev/hil
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-01-26 17:48:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-01-26 17:48:09 +0000
commit35a3a139adea42c4c20e238b0d4ea37da355141e (patch)
tree99a326bc88f8c40d0263a63fb9d0fcffc77957d5 /sys/dev/hil
parent535d4a7abde2f69d9922ec3e33c3d7786c26e67c (diff)
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.c6
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
};