1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

UTF-8 doc: Clarify FIXME in add_accesskey_to_string.

This commit is contained in:
Kalle Olavi Niemitalo 2006-08-12 12:37:37 +03:00 committed by Kalle Olavi Niemitalo
parent d90a7c8c05
commit e101f5f537

View File

@ -179,9 +179,14 @@ unsigned char *get_keymap_name(enum keymap_id);
int parse_keystroke(unsigned char *, struct term_event_keyboard *);
void add_keystroke_to_string(struct string *str, struct term_event_keyboard *kbd, int escape);
/* void add_accesskey_to_string(struct string *str, unicode_val_T accesskey); */
#define add_accesskey_to_string(str, accesskey) do { \
struct term_event_keyboard kbd; \
kbd.key = accesskey; /* FIXME: unicode_val_T to int */ \
/* FIXME: #ifndef CONFIG_UTF_8, kbd.key is encoded in \
* the charset of the terminal, so accesskey should be \
* converted from unicode_val_T to that. \
* #ifdef CONFIG_UTF_8, the code is correct. */ \
kbd.key = accesskey; \
kbd.modifier = 0; \
add_keystroke_to_string(str, &kbd, 0); \
} while (0)