1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-11 05:29:28 -04:00

UTF-8 doc: Clarify FIXME in try_document_key.

This commit is contained in:
Kalle Olavi Niemitalo 2006-08-12 15:00:44 +03:00 committed by Kalle Olavi Niemitalo
parent 8be5ed9749
commit 2648fd57e4

View File

@ -1197,7 +1197,13 @@ try_document_key(struct session *ses, struct document_view *doc_view,
for (i = 0; i < doc_view->document->nlinks; i++) {
struct link *link = &doc_view->document->links[i];
if (key == link->accesskey) { /* FIXME: key vs unicode ... */
/* FIXME: charset mismatch. @link->accesskey is always
* unicode_val_T; if CONFIG_UTF_8 is not defined, @key
* can be a byte from the charset of the terminal, in
* which case one of them should be converted for
* comparison. When implementing this, note that @key
* can also be a special key. */
if (key == link->accesskey) {
if (passed != i && i <= doc_view->vs->current_link) {
/* This is here in order to rotate between
* links with same accesskey. */