Permalink
Browse files

fix shortcuts

  • Loading branch information...
1 parent 96a8d44 commit 678ad6086f86c366080bbb498198a32be78c9075 @singpolyma committed Nov 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 st.c
View
4 st.c
@@ -2568,8 +2568,8 @@ kpress(SDL_Event *ev) {
/* 1. shortcuts */
for(i = 0; i < LEN(shortcuts); i++) {
if((ksym == shortcuts[i].keysym)
- && (CLEANMASK(shortcuts[i].mod) == \
- CLEANMASK(e->state))
+ && (CLEANMASK(shortcuts[i].mod) & \
+ CLEANMASK(e->keysym.mod) == CLEANMASK(e->keysym.mod))
&& shortcuts[i].func) {
shortcuts[i].func(&(shortcuts[i].arg));
}

0 comments on commit 678ad60

Please sign in to comment.