HomeFreeBSD

atkbd(4): Fix "hancha" and "han/yong" korean keys handling.

Description

atkbd(4): Fix "hancha" and "han/yong" korean keys handling.

The Korean keyboard has two keys, the Korean/Chinese and the
Korean/English toggles, that generate scancodes 0xF1 and 0xF2
(respectively) when pressed, and nothing when released. They do not
repeat.
As Hanyong/Hancha keys are generally greater than 0x80, which is
generally considered a release key, add extra preceding press key event
to generate press/release pair.
Swap Hanyong/Hancha key codes to match reality.

(cherry picked from commit 6a26c99f827ffa9da5e23d466eeb17131fc75238)

Details

Provenance
wulfAuthored on Jul 19 2022, 9:06 PM
Parents
rG0b62641d0d61: usbhid(4): Be more restrictive about what requests are allowed from user-space.
Branches
Unknown
Tags
Unknown