Support Unicode characters in keymap dead key tables
authorStefan Eßer <se@FreeBSD.org>
Mon, 6 Feb 2023 22:48:47 +0000 (23:48 +0100)
committerStefan Eßer <se@FreeBSD.org>
Mon, 6 Feb 2023 22:48:47 +0000 (23:48 +0100)
commit4972fb9276389fb87a790b415b1161cff395884c
treefe8ec2f293ad52375ac97028d8e5459039d5576b
parenta527c18cd7ba5d4afacbfb85817ca7b8b2487b52
Support Unicode characters in keymap dead key tables

Support for Unicode characters had been added to the keyboard code,
but there are keymaps that have accented characters accessed via dead
key combinations, and those were still restricted to 8 bit codes.

This update to kbd.c adds support for Unicode characters and
compatibility code that allows a kbdcontrol command built from kbio.h
without these patches to work on a new kernel.

Compatibility code that allows a new kbdcontrol binary running on an
old kernel to load and display the dead key map will be committed in a
separate commit.

Reviewed by: imp, brooks
Approved by: brooks
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38381
12 files changed:
sys/dev/adb/adb_kbd.c
sys/dev/atkbdc/atkbd.c
sys/dev/gpio/gpiokeys.c
sys/dev/hid/hkbd.c
sys/dev/hyperv/input/hv_kbd.c
sys/dev/kbd/kbd.c
sys/dev/kbdmux/kbdmux.c
sys/dev/syscons/syscons.c
sys/dev/usb/input/ukbd.c
sys/dev/vkbd/vkbd.c
sys/dev/vt/vt_core.c
sys/sys/kbio.h