Add "Alt" possibility for keyboard shortcuts in gui.xml.

This commit is contained in:
David Capello 2010-10-20 00:07:48 -03:00
parent 39e7fc5fea
commit b01ebedbd8

View File

@ -101,11 +101,14 @@ static void proc_one_word(JAccel accel, char* word)
for (tok=ustrtok(word, "+"); tok;
tok=ustrtok(NULL, "+")) {
// key_shifts
// modifiers
if (ustricmp (tok, "Shift") == 0) {
shifts |= KB_SHIFT_FLAG;
}
else if (ustricmp (tok, "Alt") == 0) {
shifts |= KB_ALT_FLAG;
}
else if (ustricmp (tok, "Ctrl") == 0) {
shifts |= KB_CTRL_FLAG;
}