=== modified file 'termkey.c' --- termkey.c 2013-08-26 01:35:40 +0000 +++ termkey.c 2013-08-26 01:30:43 +0000 @@ -735,7 +735,7 @@ key->type = TERMKEY_TYPE_UNICODE; /* Generically modified Unicode ought not report the SHIFT state, or else * we get into complicationg trying to report Shift-; vs : and so on... - * In order to be able to represent Ctrl-Shift-A as CTRL modified + * In order to be able to represent Ctrl-Shift-A as CTRL modified * unicode A, we need to call Ctrl-A simply 'a', lowercase */ if(codepoint+0x40 >= 'A' && codepoint+0x40 <= 'Z') @@ -1268,7 +1268,7 @@ char sep = (format & TERMKEY_FORMAT_SPACEMOD) ? ' ' : '-'; - if(format & TERMKEY_FORMAT_CARETCTRL && + if(format & TERMKEY_FORMAT_CARETCTRL && key->type == TERMKEY_TYPE_UNICODE && key->modifiers == TERMKEY_KEYMOD_CTRL) { long codepoint = key->code.codepoint; === modified file 'termkey.h.in' --- termkey.h.in 2013-08-26 01:35:40 +0000 +++ termkey.h.in 2013-08-26 00:32:35 +0000 @@ -200,7 +200,7 @@ const char *termkey_get_keyname(TermKey *tk, TermKeySym sym); const char *termkey_lookup_keyname(TermKey *tk, const char *str, TermKeySym *sym); -TermKeySym termkey_keyname2sym(TermKey *tk, const char *keyname); +TermKeySym termkey_keyname2sym(TermKey *tk, const char *keyname); TermKeyResult termkey_interpret_mouse(TermKey *tk, const TermKeyKey *key, TermKeyMouseEvent *event, int *button, int *line, int *col);