aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/events.c b/events.c
index 238441e..99e7dcb 100644
--- a/events.c
+++ b/events.c
@@ -188,7 +188,7 @@ key_to_event(guint keyval, gint mode) {
/* TODO: Pass the keyvals through a GtkIMContext so that
* we also get combining chars right
*/
- if(ukval) {
+ if(g_unichar_isgraph(ukval)) {
ulen = g_unichar_to_utf8(ukval, ucs);
ucs[ulen] = 0;