mirror of https://github.com/MidnightCommander/mc
Merge branch '1634_bs_del_fix'
* 1634_bs_del_fix: Ticket #1634 (BS, Del incorrect works in CP866 locale)
This commit is contained in:
commit
38b3740d10
|
@ -81,7 +81,7 @@ button_callback (Widget * w, widget_msg_t msg, int parm)
|
|||
}
|
||||
|
||||
if (b->text.hotkey != NULL &&
|
||||
g_ascii_tolower ((gchar) b->text.hotkey[0]) == g_ascii_tolower ((gchar) parm))
|
||||
g_ascii_tolower ((gchar) b->text.hotkey[0]) == parm)
|
||||
{
|
||||
button_callback (w, WIDGET_KEY, ' ');
|
||||
return MSG_HANDLED;
|
||||
|
|
|
@ -61,7 +61,7 @@ check_callback (Widget * w, widget_msg_t msg, int parm)
|
|||
case WIDGET_HOTKEY:
|
||||
if (c->text.hotkey != NULL)
|
||||
{
|
||||
if (g_ascii_tolower ((gchar) c->text.hotkey[0]) == g_ascii_tolower ((gchar) parm))
|
||||
if (g_ascii_tolower ((gchar) c->text.hotkey[0]) == parm)
|
||||
{
|
||||
check_callback (w, WIDGET_KEY, ' '); /* make action */
|
||||
return MSG_HANDLED;
|
||||
|
|
|
@ -61,15 +61,13 @@ radio_callback (Widget * w, widget_msg_t msg, int parm)
|
|||
{
|
||||
case WIDGET_HOTKEY:
|
||||
{
|
||||
int lp = g_ascii_tolower ((gchar) parm);
|
||||
|
||||
for (i = 0; i < r->count; i++)
|
||||
{
|
||||
if (r->texts[i].hotkey != NULL)
|
||||
{
|
||||
int c = g_ascii_tolower ((gchar) r->texts[i].hotkey[0]);
|
||||
|
||||
if (c != lp)
|
||||
if (c != parm)
|
||||
continue;
|
||||
r->pos = i;
|
||||
|
||||
|
|
Loading…
Reference in New Issue