Do not reinitialize the translation mode if reattaching to an existing
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 14 Dec 2004 02:27:00 +0000 (02:27 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 14 Dec 2004 02:27:00 +0000 (02:27 +0000)
commitde8716a38a8651aa873a4a6a324c061056c4f64e
treef10006f69dbf6cb508fd1df291860bb359401b12
parentbad1698c954771d285d421df867e6b479f27fb67
Do not reinitialize the translation mode if reattaching to an existing
keyboard state, aka the console.  Otherwise we might change the mode out
from under X and screw up X's translation of keyboard strokes.

This allows a USB keyboard to be unplugged and replugged in without messing
up X.
sys/dev/usbmisc/ukbd/ukbd.c