From 3d36f4437348227c5bad62587dc12b5fd4a3e95e Mon Sep 17 00:00:00 2001 From: grai Date: Tue, 22 Jul 2008 03:21:55 +1000 Subject: devdraw: keep Ctl-Alt from turning into Ctl-U on X11 --- src/cmd/devdraw/x11-itrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/devdraw/x11-itrans.c b/src/cmd/devdraw/x11-itrans.c index c0e3194f..d95f0cb1 100644 --- a/src/cmd/devdraw/x11-itrans.c +++ b/src/cmd/devdraw/x11-itrans.c @@ -127,7 +127,7 @@ __xtoplan9kbd(XEvent *e) if(k == XK_hyphen) k = XK_minus; /* Do control mapping ourselves if translator doesn't */ - if(e->xkey.state&ControlMask) + if(e->xkey.state&ControlMask && k != Kalt) k &= 0x9f; if(k == NoSymbol) { return -1; -- cgit v1.2.3