Interpret space as Unicode by default, add a flag to make it symbolic instead

This commit is contained in:
Paul LeoNerd Evans
2011-03-23 22:17:25 +00:00
parent ba0c32e8d8
commit a71f68dd57
4 changed files with 7 additions and 3 deletions

View File

@@ -447,7 +447,7 @@ static void emit_codepoint(TermKey *tk, long codepoint, TermKeyKey *key)
key->type = TERMKEY_TYPE_KEYSYM;
}
}
else if(codepoint == 0x20 && !(tk->flags & TERMKEY_FLAG_NOINTERPRET)) {
else if(codepoint == 0x20 && (tk->flags & TERMKEY_FLAG_SPACESYMBOL)) {
// ASCII space
key->type = TERMKEY_TYPE_KEYSYM;
key->code.sym = TERMKEY_SYM_SPACE;