=== modified file 't/02getkey.c' --- t/02getkey.c 2015-12-29 12:37:19 +0000 +++ t/02getkey.c 2014-03-05 01:11:45 +0000 @@ -6,7 +6,7 @@ TermKey *tk; TermKeyKey key; - plan_tests(35); + plan_tests(31); tk = termkey_new_abstract("vt100", 0); @@ -69,14 +69,6 @@ is_int(key.code.sym, TERMKEY_SYM_ESCAPE, "key.code.sym after Ctrl-Escape"); is_int(key.modifiers, TERMKEY_KEYMOD_CTRL, "key.modifiers after Ctrl-Escape"); - termkey_push_bytes(tk, "\0", 1); - - is_int(termkey_getkey(tk, &key), TERMKEY_RES_KEY, "getkey yields RES_KEY after Ctrl-Space"); - - is_int(key.type, TERMKEY_TYPE_UNICODE, "key.type after Ctrl-Space"); - is_int(key.code.codepoint, ' ', "key.code.codepoint after Ctrl-Space"); - is_int(key.modifiers, TERMKEY_KEYMOD_CTRL, "key.modifiers after Ctrl-Space"); - termkey_destroy(tk); return exit_status(); === modified file 'termkey.c' --- termkey.c 2015-12-29 12:37:19 +0000 +++ termkey.c 2015-03-04 23:29:11 +0000 @@ -729,13 +729,7 @@ static void emit_codepoint(TermKey *tk, long codepoint, TermKeyKey *key) { - if(codepoint == 0) { - // ASCII NUL = Ctrl-Space - key->type = TERMKEY_TYPE_KEYSYM; - key->code.sym = TERMKEY_SYM_SPACE; - key->modifiers = TERMKEY_KEYMOD_CTRL; - } - else if(codepoint < 0x20) { + if(codepoint < 0x20) { // C0 range key->code.codepoint = 0; key->modifiers = 0;