Commit 428c7eed authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix Shift modifier not being recognized for tab, space and similar keys

Closes #303
parent 5888d94b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ static void feh_set_parse_kb_partial(fehkey *key, int index, char *ks) {
	}

	key->keysyms[index] = XStringToKeysym(cur);
	if (isascii(key->keysyms[index]))
	if (isprint(key->keysyms[index]) && !isspace(key->keysyms[index]))
		mod &= ~ShiftMask;
	key->keystates[index] = mod;

@@ -278,7 +278,7 @@ void feh_event_handle_keypress(XEvent * ev)
	XLookupString(&ev->xkey, (char *) kbuf, sizeof(kbuf), &keysym, NULL);
	state = kev->state & (ControlMask | ShiftMask | Mod1Mask | Mod4Mask);

	if (isascii(keysym))
	if (isprint(keysym) && !isspace(keysym))
		state &= ~ShiftMask;

	/* menus are showing, so this is a menu control keypress */