=== modified file 'termkey.c' --- termkey.c 2016-10-11 20:30:36 +0000 +++ termkey.c 2015-12-29 12:37:19 +0000 @@ -799,15 +799,15 @@ int flags = tk->canonflags; if(flags & TERMKEY_CANON_SPACESYMBOL) { - if(key->type == TERMKEY_TYPE_UNICODE && key->code.codepoint == 0x20) { + if(key->type == TERMKEY_TYPE_UNICODE && key->code.number == 0x20) { key->type = TERMKEY_TYPE_KEYSYM; key->code.sym = TERMKEY_SYM_SPACE; } } else { if(key->type == TERMKEY_TYPE_KEYSYM && key->code.sym == TERMKEY_SYM_SPACE) { - key->type = TERMKEY_TYPE_UNICODE; - key->code.codepoint = 0x20; + key->type = TERMKEY_TYPE_UNICODE; + key->code.number = 0x20; fill_utf8(key); } }