Skip to content

Commit

Permalink
handle_key_event: Don't log unrecognized keys, these can happen
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs committed Jun 15, 2020
1 parent b60cd22 commit d08c0ae
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,8 @@ handle_key_event(XKeyEvent *e)
}
}

if (!action) {
warnx("received %s key event for key %ld with modifiers "
"0x%x we didn't bind for?",
e->type == KeyRelease ? "KeyRelease" : "KeyPress",
kc, e->state);
if (!action)
return;
}

switch (key_actions[i].action) {
case ACTION_CYCLE:
Expand Down

0 comments on commit d08c0ae

Please sign in to comment.