Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift modifier doesn't work for some keys #303

Closed
bruva opened this issue Jun 18, 2017 · 1 comment
Closed

Shift modifier doesn't work for some keys #303

bruva opened this issue Jun 18, 2017 · 1 comment
Labels

Comments

@bruva
Copy link

bruva commented Jun 18, 2017

feh version 2.19, minimal example for ~/.config/feh/keys:

next_img
prev_img
next_img space
prev_img S-space

Pressing +         (space key with shift modifier) does not show the previous image, instead it shows the next image like just pressing space.

For the tab key there is the same problem. I neither can S-Tab nor ISO_Left_Tab (the designation which xev returns) get to work.

@derf derf added the bug label Jun 19, 2017
@derf
Copy link
Owner

derf commented Jun 19, 2017

Yup, this is a bug in the way feh parses key definitions. It uses isascii() to ignore shift modifiers for "normal" keys (as, depending on the keyboard layout, keys like ( ) { } or in rare cases even 0 1 2 ... can also be accessible without Shift). However, isascii() is a bit too broad there. Looks like isgraph() is the better choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants