keyboard(7): document X compose sequences

Add -x flag to mklatinkbd to generate file for $HOME/.XCompose.

Thanks to Anthony Martin, Tony Lainson, and Kris Maglione for legwork.

R=rsc
http://codereview.appspot.com/3811043
This commit is contained in:
Russ Cox 2011-01-02 15:39:09 -05:00
parent 4f52e8afe9
commit b567422f98
4 changed files with 162 additions and 23 deletions

View file

@ -37,7 +37,7 @@ __xtoplan9kbd(XEvent *e)
needstack(64*1024); /* X has some *huge* buffers in openobject */
/* and they're even bigger on SuSE */
XLookupString((XKeyEvent*)e,NULL,0,&k,NULL);
if(k == XK_Multi_key || k == NoSymbol)
if(k == k == NoSymbol)
return -1;
if(k&0xFF00){
@ -113,6 +113,7 @@ __xtoplan9kbd(XEvent *e)
case XK_Meta_L: /* Shift Alt on PCs */
case XK_Alt_R:
case XK_Meta_R: /* Shift Alt on PCs */
case XK_Multi_key:
k = Kalt;
break;
default: /* not ISO-1 or tty control */