diff --git a/src/widget.c b/src/widget.c
index 16f4ec8..44aaa35 100644
a
|
b
|
button_callback (Widget *w, widget_msg_t msg, int parm) |
189 | 189 | } |
190 | 190 | |
191 | 191 | if (b->text.hotkey != NULL) { |
192 | | if (g_ascii_tolower ((gchar)b->text.hotkey[0]) == |
193 | | g_ascii_tolower ((gchar)parm)) { |
| 192 | if ((guchar)*(b->text.hotkey) == parm) { |
194 | 193 | button_callback (w, WIDGET_KEY, ' '); |
195 | 194 | return MSG_HANDLED; |
196 | 195 | } |
… |
… |
radio_callback (Widget *w, widget_msg_t msg, int parm) |
370 | 369 | switch (msg) { |
371 | 370 | case WIDGET_HOTKEY: |
372 | 371 | { |
373 | | int lp = g_ascii_tolower ((gchar)parm); |
374 | | |
375 | 372 | for (i = 0; i < r->count; i++) { |
376 | 373 | if (r->texts[i].hotkey != NULL) { |
377 | | int c = g_ascii_tolower ((gchar)r->texts[i].hotkey[0]); |
378 | | |
379 | | if (c != lp) |
| 374 | if ((guchar)*(r->texts[i].hotkey) != parm) |
380 | 375 | continue; |
381 | 376 | r->pos = i; |
382 | 377 | |
… |
… |
check_callback (Widget *w, widget_msg_t msg, int parm) |
505 | 500 | switch (msg) { |
506 | 501 | case WIDGET_HOTKEY: |
507 | 502 | if (c->text.hotkey != NULL) { |
508 | | if (g_ascii_tolower ((gchar)c->text.hotkey[0]) == |
509 | | g_ascii_tolower ((gchar)parm)) { |
510 | | |
| 503 | if ((guchar)*(c->text.hotkey) == parm) { |
511 | 504 | check_callback (w, WIDGET_KEY, ' '); /* make action */ |
512 | 505 | return MSG_HANDLED; |
513 | 506 | } |