BFU UTF-8: select_button_by_key() folds the case of Unicode characters.
commit4d80fe645327c071f53ea2b4f4c4ccfd389cdf73
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 13 Aug 2006 17:30:19 +0000 (13 20:30 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 13 Aug 2006 17:30:19 +0000 (13 20:30 +0300)
treea4665c0715ed96c20a8df7c7aff5ae4743e600e4
parentc8584a1c7e05cd43459b792247ceb5c1e53a6487
BFU UTF-8: select_button_by_key() folds the case of Unicode characters.

This causes the documented-slow cp2u() to be called in a loop, which
fortunately doesn't have very many iterations.  If this is too slow,
then cp2u() can be rewritten, or the hotkeys can be cached in struct
widget or struct widget_data.

Note that check_kbd_label_key() does not yet allow non-ASCII
characters when CONFIG_UTF_8 is defined.  Before they are allowed,
menu.c should also be updated.
src/bfu/dialog.c