diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -880,8 +880,8 @@ translateKey(PuglView* const view, XEvent* const xevent, PuglEvent* const event) event->key.keycode = xevent->xkey.keycode; - // Mask off the shift bit to get the lowercase "main" symbol - xevent->xkey.state = xevent->xkey.state & ~(unsigned)ShiftMask; + // Mask off the control and shift bits to get the lowercase "main" symbol + xevent->xkey.state = xevent->xkey.state & ~(unsigned)(ControlMask|ShiftMask); // Lookup unshifted key char ustr[8] = {0}; |