1
1

tweaks: judge from the key code itself whether it is a Meta keystroke

Этот коммит содержится в:
Benno Schulenberg 2020-01-22 13:22:27 +01:00
родитель 196e913681
Коммит 58597b6d9b
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -419,7 +419,8 @@ int the_code_for(void (*func)(void), int defaultval)
if (s == NULL) if (s == NULL)
return defaultval; return defaultval;
meta_key = s->meta; meta_key = (0x20 <= s->keycode && s->keycode <= 0x7E);
return s->keycode; return s->keycode;
} }

Просмотреть файл

@ -1689,7 +1689,7 @@ int get_mouseinput(int *mouse_y, int *mouse_x, bool allow_shortcuts)
const keystruct *shortcut = first_sc_for(currmenu, f->func); const keystruct *shortcut = first_sc_for(currmenu, f->func);
put_back(shortcut->keycode); put_back(shortcut->keycode);
if (shortcut->meta) if (0x20 <= shortcut->keycode && shortcut->keycode <= 0x7E)
put_back(ESC_CODE); put_back(ESC_CODE);
break; break;
} }