AltGr leaks keypresses to VT on which X is running
Hi,
I recently observed this odd behavior:
I login as root on tty3 and run
loadkeys pl # like US QWERTY but AltGr changes a->ą c->ć etc.
echo # only typed, not actually executed with ENTER
Now the last line shows the incomplete command:
$ echo
Then I login on tty1 and run
Xorg :0 vt3
which displays Xorg on vt3. Inside Xorg, while holding AltGr, I hit every letter in order: qwerty...asdf...zxc..
Then I kill Xorg and switch to vt3. Now the last line shows:
$ echo ęąśłżźń
These are all AltGr-generated Polish letters _except_ ó (AltGr+o). No idea what's so special about ó. Pressing ENTER runs echo which really prints this string.
Similar thing happens with German ('de') console layout. X layout seems irrelevant.
It only happens if I first hold AltGr and then press a letter, not the other way around.
Inside Xorg, all keys are processed correctly.
I'm not sure if it's a kernel bug, X bug or something "expected"?
Thanks,
Michal