aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/x11.c b/src/x11.c
index 1756763..0513280 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -894,7 +894,8 @@ translateKey(PuglView* const view, XEvent* const xevent, PuglEvent* const event)
event->key.key = (PuglKey)puglDecodeUTF8((const uint8_t*)ustr);
}
- if (xevent->type == KeyPress && !filter && !special && view->impl->xic) {
+ if (xevent->type == KeyPress && !filter && !(special && ufound <= 0) &&
+ view->impl->xic) {
// Lookup shifted key for possible text event
xevent->xkey.state = state;