mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
UTF-8 doc: Clarify FIXME in add_accesskey_to_string.
This commit is contained in:
parent
d90a7c8c05
commit
e101f5f537
@ -179,9 +179,14 @@ unsigned char *get_keymap_name(enum keymap_id);
|
|||||||
int parse_keystroke(unsigned char *, struct term_event_keyboard *);
|
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_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 { \
|
#define add_accesskey_to_string(str, accesskey) do { \
|
||||||
struct term_event_keyboard kbd; \
|
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; \
|
kbd.modifier = 0; \
|
||||||
add_keystroke_to_string(str, &kbd, 0); \
|
add_keystroke_to_string(str, &kbd, 0); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
Loading…
Reference in New Issue
Block a user