1
1

tweaks: remove the now-unused meta flag from 'keystruct'

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

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

@ -531,7 +531,6 @@ int keycode_from_string(const char *keystring)
void assign_keyinfo(keystruct *s, const char *keystring, const int keycode) void assign_keyinfo(keystruct *s, const char *keystring, const int keycode)
{ {
s->keystr = keystring; s->keystr = keystring;
s->meta = ((keystring[0] == 'M' || keystring[0] == 'S') && keycode < 0x7F);
s->keycode = (keycode ? keycode : keycode_from_string(keystring)); s->keycode = (keycode ? keycode : keycode_from_string(keystring));
} }

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

@ -422,8 +422,6 @@ typedef struct rcoption {
typedef struct keystruct { typedef struct keystruct {
const char *keystr; const char *keystr;
/* The string that describes the keystroke, like "^C" or "M-R". */ /* The string that describes the keystroke, like "^C" or "M-R". */
bool meta;
/* Whether this is a Meta keystroke. */
int keycode; int keycode;
/* The integer that, together with meta, identifies the keystroke. */ /* The integer that, together with meta, identifies the keystroke. */
int menus; int menus;