int n;
n = (Evas_Modifier_Mask)evas_key_modifier_number(&(e->modifiers), keyname);
- if (n < 0) return;
+ if (n < 0 || n > 63) return;
num = (Evas_Modifier_Mask)n;
num = 1 << num;
e->modifiers.mask |= num;
int n;
n = evas_key_modifier_number(&(e->modifiers), keyname);
- if (n < 0) return;
+ if (n < 0 || n > 63) return;
num = (Evas_Modifier_Mask)n;
num = 1 << num;
e->modifiers.mask &= ~num;
int n;
n = evas_key_lock_number(&(e->locks), keyname);
- if (n < 0) return;
+ if (n < 0 || n > 63) return;
num = (Evas_Modifier_Mask)n;
num = 1 << num;
e->locks.mask |= num;
int n;
n = evas_key_lock_number(&(e->locks), keyname);
- if (n < 0) return;
+ if (n < 0 || n > 63) return;
num = (Evas_Modifier_Mask)n;
num = 1 << num;
e->locks.mask &= ~num;
if (!keyname) return 0;
n = evas_key_modifier_number(&(e->modifiers), keyname);
- if (n < 0) return 0;
+ if (n < 0 || n > 63) return 0;
num = (Evas_Modifier_Mask)n;
return 1 << num;
}