summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-15 00:48:25 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-15 00:48:25 +0100
commitd2ac8a9c8f5a3a3c3455241339dd65fac750db44 (patch)
treee3e51cdd7111adaa69d989a86fab8fd6c94f2343
parent977d8824da394f9830f2aa1093b359bc5cf48537 (diff)
keys: Allow more modifiers, warn for unknown ones
-rw-r--r--src/keyevents.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 049b4db..91fa8a4 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -54,7 +54,26 @@ static void feh_set_parse_kb_partial(fehkey *key, int index, char *ks) {
case 'C':
mod = ControlMask;
break;
+ case 'S':
+ mod = ShiftMask;
+ break;
+ case '1':
+ mod = Mod1Mask;
+ break;
+ case '2':
+ mod = Mod2Mask;
+ break;
+ case '3':
+ mod = Mod3Mask;
+ break;
+ case '4':
+ mod = Mod4Mask;
+ break;
+ case '5':
+ mod = Mod5Mask;
+ break;
default:
+ weprintf("feh keys: invalid modifier %c in %s", ks[0], ks);
break;
}
cur = ks + 2;