… | |
… | |
198 | |
198 | |
199 | int index = find_keysym (keysym, state); |
199 | int index = find_keysym (keysym, state); |
200 | |
200 | |
201 | if (index >= 0) |
201 | if (index >= 0) |
202 | { |
202 | { |
203 | const keysym_t &key = *keymap [index]; |
203 | keysym_t *key = keymap [index]; |
204 | |
204 | |
205 | if (key.type != keysym_t::BUILTIN) |
205 | if (key->type != keysym_t::BUILTIN) |
206 | { |
206 | { |
207 | wchar_t *wc = rxvt_utf8towcs (key.str); |
207 | wchar_t *wc = rxvt_utf8towcs (key->str); |
208 | char *str = rxvt_wcstombs (wc); |
208 | char *str = rxvt_wcstombs (wc); |
209 | // TODO: do (some) translations, unescaping etc, here (allow \u escape etc.) |
209 | // TODO: do (some) translations, unescaping etc, here (allow \u escape etc.) |
210 | free (wc); |
210 | free (wc); |
211 | |
211 | |
212 | output_string (term, str); |
212 | output_string (term, str); |