=== modified file 'demo.c' --- demo.c 2008-02-23 23:17:31 +0000 +++ demo.c 2008-02-23 20:28:18 +0000 @@ -17,14 +17,14 @@ termkey_get_keyname(tk, key.code), key.code); else - printf("Unicode %s%s%s%s (U+%04X)\n", + printf("Key %s%s%s%s (U+%04X)\n", key.modifiers & TERMKEY_KEYMOD_SHIFT ? "Shift-" : "", key.modifiers & TERMKEY_KEYMOD_ALT ? "Alt-" : "", key.modifiers & TERMKEY_KEYMOD_CTRL ? "Ctrl-" : "", key.utf8, key.code); - if(key.modifiers & TERMKEY_KEYMOD_CTRL && (key.code == 'C' || key.code == 'c')) + if(key.modifiers & TERMKEY_KEYMOD_CTRL && key.code == 'C') break; }